Skip to content

Commit 5a83940

Browse files
committed
fix categorical
1 parent 8103b8c commit 5a83940

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/core/arrays/categorical.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -2069,14 +2069,12 @@ def _reverse_indexer(self):
20692069
return result
20702070

20712071
# reduction ops #
2072-
def _reduce(self, op, name, axis=0, skipna=True, numeric_only=None,
2073-
filter_type=None, **kwds):
2074-
""" perform the reduction type operation """
2072+
def _reduce(self, name, axis=0, skipna=True, **kwargs):
20752073
func = getattr(self, name, None)
20762074
if func is None:
20772075
msg = 'Categorical cannot perform the operation {op}'
20782076
raise TypeError(msg.format(op=name))
2079-
return func(numeric_only=numeric_only, **kwds)
2077+
return func(**kwargs)
20802078

20812079
def min(self, numeric_only=None, **kwargs):
20822080
""" The minimum value of the object.

0 commit comments

Comments
 (0)