Skip to content

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

Merged
merged 20 commits into from
May 5, 2023

Conversation

phofl
Copy link
Member

@phofl phofl commented Mar 17, 2023

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

sits on top of #51698

@phofl phofl added Indexing Related to indexing on series/frames, not to indexes themselves Copy / view semantics labels Mar 17, 2023
@phofl phofl added this to the 2.1 milestone Mar 17, 2023
@github-actions
Copy link
Contributor

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.

@github-actions github-actions bot added the Stale label Apr 17, 2023
@phofl phofl removed the Stale label May 5, 2023
@phofl
Copy link
Member Author

phofl commented May 5, 2023

cc @jorisvandenbossche

# 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
Copy link
Member

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?

Copy link
Member Author

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

@phofl phofl merged commit 13c9922 into pandas-dev:main May 5, 2023
@phofl phofl deleted the cow_isetitem branch May 5, 2023 17:46
topper-123 pushed a commit to topper-123/pandas that referenced this pull request May 7, 2023
Rylie-W pushed a commit to Rylie-W/pandas that referenced this pull request May 19, 2023
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Copy / view semantics Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants