Skip to content

DOC: Fixed type hints for GroupBy.{any, all} #36284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
8 changes: 6 additions & 2 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,9 @@ def any(self, skipna: bool = True):

Returns
-------
bool
Series or DataFrame
DataFrame or Series of boolean values, which is True if any element is
True within each group, False otherwise.
"""
return self._bool_agg("any", skipna)

Expand All @@ -1347,7 +1349,9 @@ def all(self, skipna: bool = True):

Returns
-------
bool
Series or DataFrame
DataFrame or Series of boolean values, which is True if all elements are
True within each group, False otherwise.
"""
return self._bool_agg("all", skipna)

Expand Down