-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: RangeIndex._shallow_copy can return RangeIndex #47557
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
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.
asv's prove out the change in perf?
The memory perf will just be evident in the result
|
no objection to this PR, but ideally this case would be caught in _union to prevent ever materializing the ndarray |
Added logic to do this in 63e7894, but I think the change in |
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.
and asv's still hold here (after latest changes)?
|
Thanks! |
pd.concat
whenaxis=1
#46675 (Replace xxxx with the Github issue number)Index.union
is materializing even when it is not needed whensort=False
#43885doc/source/whatsnew/v1.5.0.rst
file if fixing a bug or adding a new feature.