Skip to content

Commit ea576e5

Browse files
committed
BUG: Make Index.all accept args/kwargs, for compatibility with numpy.all
1 parent aa3cfec commit ea576e5

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
@@ -5994,10 +5994,11 @@ def any(self, *args, **kwargs):
59945994
False
59955995
"""
59965996
# FIXME: docstr inaccurate, args/kwargs not passed
5997+
nv.validate_any(args, kwargs)
59975998
self._maybe_disable_logical_methods("any")
59985999
return np.any(self.values)
59996000

6000-
def all(self):
6001+
def all(self, *args, **kwargs):
60016002
"""
60026003
Return whether all elements are Truthy.
60036004
@@ -6052,6 +6053,7 @@ def all(self):
60526053
"""
60536054
# FIXME: docstr inaccurate, args/kwargs not passed
60546055

6056+
nv.validate_all(args, kwargs)
60556057
self._maybe_disable_logical_methods("all")
60566058
return np.all(self.values)
60576059

0 commit comments

Comments
 (0)