bigframes.pandas.DataFrame.eq#
- DataFrame.eq(other: Any, axis: str | int = 'columns') DataFrame[source]#
Get equal to of DataFrame and other, element-wise (binary operator eq).
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.
Examples:
You can use method name:
>>> df = bpd.DataFrame({'angles': [0, 3, 4], ... 'degrees': [360, 180, 360]}, ... index=['circle', 'triangle', 'rectangle']) >>> df["degrees"].eq(360) circle True triangle False rectangle True Name: degrees, dtype: boolean
You can also use logical operator ==:
>>> df["degrees"] == 360 circle True triangle False rectangle True Name: degrees, dtype: boolean
- Parameters:
- Returns:
Result of the comparison.
- Return type: