-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: df.getitem returning copy instead of view for unique column in dup index #45526
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
perf impact? |
Good point. Let's check for uniqueness or that the key is unique, so we only have the drop duplicates call if we have non unique columns |
# Conflicts: # doc/source/whatsnew/v1.5.0.rst
@phofl can you merge master and some comments |
Done |
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
Merged master again |
@phofl could you merge in one more time. Looks pretty good. |
� Conflicts: � pandas/tests/indexing/test_chaining_and_caching.py
Done |
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.
LGTM. Looks to need @jreback 's approval to merge
thanks @phofl very nice as always |
I think this is more intuitive (and "more" correct) than the previous behavior.