R

Comparison operators for the DataFrame's have been redesigned to the PandasExample:In [207]: d1 = pd.DataFrame([[1,2,3], [4,5,6], [7,8,9]], columns=list("abc"))
In [208]: d2 = pd.DataFrame([[2,2,1], [7,8,4], [1,2,9]], columns=list("abc"))
In [209]: d1
Out[209]:
a b c
0 1 2 3
1 4 5 6
2 7 8 9
In [210]: d2
Out[210]:
a b c
0 2 2 1
1 7 8 4
2 1 2 9
In [211]: d1 < d2
Out[211]:
a b c
0 True False False
1 True True False
2 False False False
In [212]: (d1 < d2).astype("int8")
Out[212]:
a b c
0 1 0 0
1 1 1 0
2 0 0 0