-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Datetime/Timedelta/Period Index min, argmin, max, argmax have axis
kwarg
#23081
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
Comments
Hi, |
These methods are defined in pandas/core/indexes/datetimelike.py
DatetimeIndex/TimedeltaIndex/PeriodIndex are each 1-dimensional, so an It's conceivable that the argument is there in order to keep the method's signature consistent with some other class's methods, but someone more knowledgeable than me will have to weigh in on that. |
@anjalibhavan the code we're talking about is for example: https://github.com/pandas-dev/pandas/blob/master/pandas/core/indexes/datetimelike.py#L451 Personally I think we should get rid of them, and I don't think it's worth adding a deprecation warning, as the functions seem to accept |
@datapythonista there is also |
@datapythonista : We perform validation on |
thanks @5hirish, looks like it's the same case. @jbrockmendel I'll leave it to you whether to add it to the issue description or not, may be I'm missing something. @gfyoung I didn't see that. Then it probably makes sense to deprecate first. But I don't think if there will be any code out there using a parameter that has no effect. |
@datapythonista : Well, better safe than sorry 🙂. That's all I'll say, since we seem to be in agreement that we should go with deprecation instead of removal. |
@datapythonista Let me know I can revert the removals and add deprecation warnings if I understand correctly. I can see an example here: https://github.com/pandas-dev/pandas/blob/master/pandas/core/indexes/datetimelike.py#L399 |
this is not possible because of numpy compatibility. This is also appropriately documented. Is there an issue there? |
* validate min/max axis closes #23081 * Fix copy/paste indentation mistake * Fix merge mixup
* validate min/max axis closes pandas-dev#23081 * Fix copy/paste indentation mistake * Fix merge mixup
Presumably shouldn't, or at least should raise if non-None.
The text was updated successfully, but these errors were encountered: