pyspark.pandas.Series.le#

Series.le(other)[source]#

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.a <= 2
a     True
b     True
c    False
d    False
Name: a, dtype: bool
>>> df.b.le(2)
a     True
b    False
c     True
d    False
Name: b, dtype: bool