Return Less than or equal to of series and other, element-wise (binary operator le).

Equivalent to series <= other, but with support to substitute a fill_value for missing data in one of the inputs.

param other

Series or scalar value

param fill_value
None or float value, default None (NaN)

Fill existing missing (NaN) values, and any new element needed for successful Series alignment, with this value before computation. If data in both corresponding Series locations is missing the result will be missing.

param level
int or name

Broadcast across a level, matching Index values on the passed MultiIndex level.


Series The result of the operation.


  • Parameter axis is supported only with default value 0.

  • Parameters level and fill_value are supported only with default value None.


Element-wise less than or equal of one Series by another (binary operator le)
import pandas as pd
from numba import njit

def series_le():
    s1 = pd.Series([5, 4, 3, 2, 1])
    s2 = pd.Series([0, 2, 3, 6, 8])

    return s1.le(s2)  # Expect series of False, False, True, True, True

$ python ./series/
0    False
1    False
2     True
3     True
4     True
dtype: bool