-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
REGR: disallow mean of period column again #33758
REGR: disallow mean of period column again #33758
Conversation
Does this also disable median for PeriodDtype? |
Hmm, yes, indeed. Now, I would say that can be left out of this PR, because:
So properly supporting median basically needs |
@jbrockmendel does that sound OK to you? |
Yes, this is a Worth Doing It Right situation. |
lgtm. this does not test / disable median? |
See my answer to Brock above |
kk great @jorisvandenbossche |
This reverts parts of #32426 and #29941 (those are only on master, not yet released), to disallow taking the mean on a Period dtype column again. The mean for period is not supported on PeriodArray itself or for a Series of period dtype (on purpose, see discussion in #24757 when mean for datetimelike was added), so for DataFrame columns it should also not work.
See also comment at #32426 (comment)
cc @jbrockmendel