bigframes.pandas.DataFrame.all#
- DataFrame.all(axis: str | int = 0, *, bool_only: bool = False) Series[source]#
Return whether all elements are True, potentially over an axis.
Returns True unless there at least one element within a Series or along a DataFrame axis that is False or equivalent (e.g. zero or empty).
Examples:
>>> df = bpd.DataFrame({"A": [True, True], "B": [False, False]}) >>> df A B 0 True False 1 True False [2 rows x 2 columns]
Checking if all values in each column are True(the default behavior without an explicit axis parameter):
>>> df.all() A True B False dtype: boolean
Checking across rows to see if all values are True:
>>> df.all(axis=1) 0 False 1 False dtype: boolean
- Parameters:
axis ({index (0), columns (1)}) – Axis for the function to be applied on. For Series this parameter is unused and defaults to 0.
bool_only (bool. default False) – Include only boolean columns.
- Returns:
Series indicating if all elements are True per column.
- Return type: