Skip to content

Commit ce7f0da

Browse files
committed
Remove kwargs in catergorical.min and max
1 parent ac89bcd commit ce7f0da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/core/arrays/categorical.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,7 @@ def _reduce(self, name, axis=0, **kwargs):
21772177
return func(**kwargs)
21782178

21792179
@deprecate_kwarg(old_arg_name="numeric_only", new_arg_name="skipna")
2180-
def min(self, skipna=True, **kwargs):
2180+
def min(self, skipna=True):
21812181
"""
21822182
The minimum value of the object.
21832183
@@ -2196,15 +2196,15 @@ def min(self, skipna=True, **kwargs):
21962196
good = self._codes != -1
21972197
if not good.all():
21982198
if skipna:
2199-
pointer = self._codes[good].min(**kwargs)
2199+
pointer = self._codes[good].min()
22002200
else:
22012201
return np.nan
22022202
else:
2203-
pointer = self._codes.min(**kwargs)
2203+
pointer = self._codes.min()
22042204
return self.categories[pointer]
22052205

22062206
@deprecate_kwarg(old_arg_name="numeric_only", new_arg_name="skipna")
2207-
def max(self, skipna=True, **kwargs):
2207+
def max(self, skipna=True):
22082208
"""
22092209
The maximum value of the object.
22102210
@@ -2223,11 +2223,11 @@ def max(self, skipna=True, **kwargs):
22232223
good = self._codes != -1
22242224
if not good.all():
22252225
if skipna:
2226-
pointer = self._codes[good].max(**kwargs)
2226+
pointer = self._codes[good].max()
22272227
else:
22282228
return np.nan
22292229
else:
2230-
pointer = self._codes.max(**kwargs)
2230+
pointer = self._codes.max()
22312231
return self.categories[pointer]
22322232

22332233
def mode(self, dropna=True):

0 commit comments

Comments
 (0)