bigframes.pandas.DataFrame.le#
- DataFrame.le(other:Any,axis:str|int='columns')→DataFrame[source]#
Get ‘less than or equal to’ of dataframe and other, element-wise (binary operator<=).
Among flexible wrappers (eq,ne,le,lt,ge,gt) to comparisonoperators.
Equivalent to==,!=,<=,<,>=,> with support to choose axis(rows or columns) and level for comparison.
Note
Mismatched indices will be unioned together.NaN values infloating point columns are considered different(i.e.NaN !=NaN).
Examples:
You can use method name:
>>>df=bpd.DataFrame({'angles':[0,3,4],...'degrees':[360,180,360]},...index=['circle','triangle','rectangle'])>>>df["degrees"].le(180)circle Falsetriangle Truerectangle FalseName: degrees, dtype: boolean
You can also use arithmetic operator
<=:>>>df["degrees"]<=180circle Falsetriangle Truerectangle FalseName: degrees, dtype: boolean
- Parameters:
- Returns:
DataFrame of bool. The result of the comparison.
- Return type:
On this page