pyspark.pandas.DataFrame.le

DataFrame.le(other: Any) → pyspark.pandas.frame.DataFrame

Compare if the current value is less than or equal to the other.

>>> df = ps.DataFrame({'a': [1, 2, 3, 4],
...                    'b': [1, np.nan, 1, np.nan]},
...                   index=['a', 'b', 'c', 'd'], columns=['a', 'b'])
>>> df.le(2)
       a      b
a   True   True
b   True  False
c  False   True
d  False  False