pandas.core.groupby.DataFrameGroupBy.any

DataFrameGroupBy.any(skipna=True)[source]

Return True if any value in the group is truthful, else False.

Parameters
skipnabool, default True

Flag to ignore nan values during truth testing.

Returns
bool

See also

Series.groupby
DataFrame.groupby