Skip to content

Removed axis argument from Datetime/Timedelta/Period Index min, ar… #23142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pandas/core/indexes/datetimelike.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def tolist(self):
"""
return list(self.astype(object))

def min(self, axis=None, *args, **kwargs):
def min(self, *args, **kwargs):
"""
Return the minimum value of the Index or minimum along
an axis.
Expand All @@ -448,7 +448,7 @@ def min(self, axis=None, *args, **kwargs):
except ValueError:
return self._na_value

def argmin(self, axis=None, *args, **kwargs):
def argmin(self, *args, **kwargs):
"""
Returns the indices of the minimum values along an axis.
See `numpy.ndarray.argmin` for more information on the
Expand All @@ -469,7 +469,7 @@ def argmin(self, axis=None, *args, **kwargs):
i8[mask] = np.iinfo('int64').max
return i8.argmin()

def max(self, axis=None, *args, **kwargs):
def max(self, *args, **kwargs):
"""
Return the maximum value of the Index or maximum along
an axis.
Expand All @@ -496,7 +496,7 @@ def max(self, axis=None, *args, **kwargs):
except ValueError:
return self._na_value

def argmax(self, axis=None, *args, **kwargs):
def argmax(self, *args, **kwargs):
"""
Returns the indices of the maximum values along an axis.
See `numpy.ndarray.argmax` for more information on the
Expand Down