Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ENH: Support EAs in Series.unstack #23284
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
ENH: Support EAs in Series.unstack #23284
Changes from all commits
ced299f
3b63fcb
756dde9
90f84ef
942db1b
36a4450
ee330d6
2fcaf4d
4f46364
e9498a1
72b5a0d
f6b2050
4d679cb
ff7aba7
91587cb
49bdb50
cf8ed73
5902b5b
17d3002
a75806a
2397e89
8ed7c73
b23234c
29a6bb1
19b7cfa
254fe52
2d78d42
a9e6263
ca286f7
2f28638
967c674
f6aa4b9
32bc3de
56e5f2f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
can you add a doc-string (or does it share)?
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.
The inherited one OK. I'm going to leave a comment explaining why we override.
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.
would not this generically work for all unstacking/ (e.g. what if you make this the super method)?
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.
I think this is slower in general. It's necessarily slower for NumPy types, since you have to do the reshaping / unstack on the ndarray of positions anyway.
The hope is that the cost of the additional
take
per column is offset by not converting to an ndarray[object] in the first place.Working on benchmarks now.