Skip to content

Commit cf4c415

Browse files
committed
DOC: update docstrings for Index.any/all
1 parent ea576e5 commit cf4c415

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

pandas/core/indexes/base.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5964,9 +5964,9 @@ def any(self, *args, **kwargs):
59645964
Parameters
59655965
----------
59665966
*args
5967-
These parameters will be passed to numpy.any.
5967+
Required for compatibility with numpy.
59685968
**kwargs
5969-
These parameters will be passed to numpy.any.
5969+
Required for compatibility with numpy.
59705970
59715971
Returns
59725972
-------
@@ -5993,7 +5993,6 @@ def any(self, *args, **kwargs):
59935993
>>> index.any()
59945994
False
59955995
"""
5996-
# FIXME: docstr inaccurate, args/kwargs not passed
59975996
nv.validate_any(args, kwargs)
59985997
self._maybe_disable_logical_methods("any")
59995998
return np.any(self.values)
@@ -6005,9 +6004,9 @@ def all(self, *args, **kwargs):
60056004
Parameters
60066005
----------
60076006
*args
6008-
These parameters will be passed to numpy.all.
6007+
Required for compatibility with numpy.
60096008
**kwargs
6010-
These parameters will be passed to numpy.all.
6009+
Required for compatibility with numpy.
60116010
60126011
Returns
60136012
-------
@@ -6051,8 +6050,6 @@ def all(self, *args, **kwargs):
60516050
>>> pd.Index([0, 0, 0]).any()
60526051
False
60536052
"""
6054-
# FIXME: docstr inaccurate, args/kwargs not passed
6055-
60566053
nv.validate_all(args, kwargs)
60576054
self._maybe_disable_logical_methods("all")
60586055
return np.all(self.values)

0 commit comments

Comments
 (0)