-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Series.describe treating pyarrow timestamps/timedeltas as categorical #53001
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
Conversation
pandas/tests/extension/test_arrow.py
Outdated
dtype=object, | ||
index=["count", "mean", "min", "25%", "50%", "75%", "max"], | ||
) | ||
for k, v in expected.items(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you do this explicitly? I might be missing something...
Edit: When creating the Series
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure - updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! Thanks @lukemanley
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
Mind backporting @lukemanley? |
…imestamps/timedeltas as categorical
just backported in #53031 |
…rical (pandas-dev#53001) * Series.describe treating pyarrow timestamps and timedeltas as categorical * gh refs * cleanup
…rical (pandas-dev#53001) * Series.describe treating pyarrow timestamps and timedeltas as categorical * gh refs * cleanup
…rical (pandas-dev#53001) * Series.describe treating pyarrow timestamps and timedeltas as categorical * gh refs * cleanup
doc/source/whatsnew/v2.0.2.rst
file if fixing a bug or adding a new feature.Fixes the following such that pyarrow-backed timestamps and timedeltas are described in the same way numpy-backed timestamps and timedeltas are described.
Current behavior:
New behavior: