pandas.api.typing.DataFrameGroupBy.any

pandas 3.1.1 · GroupBy · method

Test whether at least one value along the selected axis or group evaluates to true.

Call syntax

pd.api.typing.DataFrameGroupBy.any(skipna=True)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
skipna Optional
Positional or keyword
Default True
bool

Choose whether to exclude missing values during the calculation.

Returns

Series or DataFrame