Skip to content

Commit cdce525

Browse files
committed
DOC: update docstrings for Index.any/all
1 parent 26211d9 commit cdce525

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
@@ -5952,9 +5952,9 @@ def any(self, *args, **kwargs):
59525952
Parameters
59535953
----------
59545954
*args
5955-
These parameters will be passed to numpy.any.
5955+
Required for compatibility with numpy.
59565956
**kwargs
5957-
These parameters will be passed to numpy.any.
5957+
Required for compatibility with numpy.
59585958
59595959
Returns
59605960
-------
@@ -5981,7 +5981,6 @@ def any(self, *args, **kwargs):
59815981
>>> index.any()
59825982
False
59835983
"""
5984-
# FIXME: docstr inaccurate, args/kwargs not passed
59855984
nv.validate_any(args, kwargs)
59865985
self._maybe_disable_logical_methods("any")
59875986
return np.any(self.values)
@@ -5993,9 +5992,9 @@ def all(self, *args, **kwargs):
59935992
Parameters
59945993
----------
59955994
*args
5996-
These parameters will be passed to numpy.all.
5995+
Required for compatibility with numpy.
59975996
**kwargs
5998-
These parameters will be passed to numpy.all.
5997+
Required for compatibility with numpy.
59995998
60005999
Returns
60016000
-------
@@ -6039,8 +6038,6 @@ def all(self, *args, **kwargs):
60396038
>>> pd.Index([0, 0, 0]).any()
60406039
False
60416040
"""
6042-
# FIXME: docstr inaccurate, args/kwargs not passed
6043-
60446041
nv.validate_all(args, kwargs)
60456042
self._maybe_disable_logical_methods("all")
60466043
return np.all(self.values)

0 commit comments

Comments
 (0)