Skip to content

Commit 653f694

Browse files
authored
DOC: Fixed type hints for GroupBy.{any, all} (#36284)
1 parent 345efdd commit 653f694

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pandas/core/groupby/groupby.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,9 @@ def any(self, skipna: bool = True):
13711371
13721372
Returns
13731373
-------
1374-
bool
1374+
Series or DataFrame
1375+
DataFrame or Series of boolean values, where a value is True if any element
1376+
is True within its respective group, False otherwise.
13751377
"""
13761378
return self._bool_agg("any", skipna)
13771379

@@ -1388,7 +1390,9 @@ def all(self, skipna: bool = True):
13881390
13891391
Returns
13901392
-------
1391-
bool
1393+
Series or DataFrame
1394+
DataFrame or Series of boolean values, where a value is True if all elements
1395+
are True within its respective group, False otherwise.
13921396
"""
13931397
return self._bool_agg("all", skipna)
13941398

0 commit comments

Comments
 (0)