-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: maybe_dispatch_to_dunder_op handle min/max #31219
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
To clarify, |
But yes, it is specifically the |
That would be solved with Index having an Can you provide a failing example for reduce on period array? In [8]: np.maximum.reduce(pd.array(['2000', '2001'], dtype='Period[D]'))
Out[8]: Period('2001-01-01', 'D') |
Not on master. In the relevant branch I have implemented |
I'm running up against a case where I need np.maximum.reduce(period_array) to work; itd be nice if that could be handled by maybe_dispatch to call PeriodArray.max
cc @jorisvandenbossche @TomAugspurger
The text was updated successfully, but these errors were encountered: