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