-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CoW: Delay copy when setting Series or Frame with isetitem #52051
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
# Conflicts: # pandas/core/frame.py
# Conflicts: # pandas/core/frame.py
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. |
# Conflicts: # pandas/core/frame.py # pandas/tests/copy_view/test_setitem.py
arraylike, _ = self._sanitize_column(value.iloc[:, i]) | ||
self._iset_item_mgr(idx, arraylike, inplace=False) | ||
arraylike, refs = self._sanitize_column( | ||
value.iloc[:, i], using_cow=using_cow |
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 we actually call using_copy_on_write()
inside _sanitize_column
instead of having to pass it everywhere?
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.
Yes this will be a clean up when all the other PRs are merged
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.sits on top of #51698