We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 345efdd commit 653f694Copy full SHA for 653f694
pandas/core/groupby/groupby.py
@@ -1371,7 +1371,9 @@ def any(self, skipna: bool = True):
1371
1372
Returns
1373
-------
1374
- bool
+ 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.
1377
"""
1378
return self._bool_agg("any", skipna)
1379
@@ -1388,7 +1390,9 @@ def all(self, skipna: bool = True):
1388
1390
1389
1391
1392
1393
1394
+ DataFrame or Series of boolean values, where a value is True if all elements
1395
+ are True within its respective group, False otherwise.
1396
1397
return self._bool_agg("all", skipna)
1398
0 commit comments