diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 8340f964fb44b..54d52b1e79da3 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -1371,7 +1371,9 @@ def any(self, skipna: bool = True): Returns ------- - bool + Series or DataFrame + DataFrame or Series of boolean values, where a value is True if any element + is True within its respective group, False otherwise. """ return self._bool_agg("any", skipna) @@ -1388,7 +1390,9 @@ def all(self, skipna: bool = True): Returns ------- - bool + Series or DataFrame + DataFrame or Series of boolean values, where a value is True if all elements + are True within its respective group, False otherwise. """ return self._bool_agg("all", skipna)