Skip to content

Commit 26211d9

Browse files
committed
BUG: Make Index.all accept args/kwargs, for compatibility with numpy.all
1 parent 861d2f2 commit 26211d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/indexes/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5982,10 +5982,11 @@ def any(self, *args, **kwargs):
59825982
False
59835983
"""
59845984
# FIXME: docstr inaccurate, args/kwargs not passed
5985+
nv.validate_any(args, kwargs)
59855986
self._maybe_disable_logical_methods("any")
59865987
return np.any(self.values)
59875988

5988-
def all(self):
5989+
def all(self, *args, **kwargs):
59895990
"""
59905991
Return whether all elements are Truthy.
59915992
@@ -6040,6 +6041,7 @@ def all(self):
60406041
"""
60416042
# FIXME: docstr inaccurate, args/kwargs not passed
60426043

6044+
nv.validate_all(args, kwargs)
60436045
self._maybe_disable_logical_methods("all")
60446046
return np.all(self.values)
60456047

0 commit comments

Comments
 (0)