Skip to content

CoW: Set a bunch of Series copy statements to False #56520

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 2 commits into from
Dec 21, 2023

Conversation

phofl
Copy link
Member

@phofl phofl commented Dec 15, 2023

Because the default is now copy=True for numpy array input when CoW is enabled, we can explicitly disable copying when we know the data is newly generated.

@phofl phofl requested a review from rhshadrach as a code owner December 15, 2023 23:22
@phofl phofl added this to the 2.2 milestone Dec 15, 2023
@jorisvandenbossche jorisvandenbossche merged commit a3af152 into pandas-dev:main Dec 21, 2023
@phofl phofl deleted the cow_copy branch December 21, 2023 20:45
@jorisvandenbossche
Copy link
Member

Thanks! Do you know if there are still many other places as well to further check this, or was this already the result of a more or less full search?

@phofl
Copy link
Member Author

phofl commented Dec 21, 2023

I searched in the past already, I think we got most cases, but wouldn't guarantee 100% coverage

@jorisvandenbossche
Copy link
Member

No 100% guarantee needed ;) Just to know if we need to actively track this as a further TODO item

@phofl
Copy link
Member Author

phofl commented Dec 21, 2023

I don't think so, but I reserve the right to change this statement when we switch over and see a bunch of regressions in the asvs :)

cbpygit pushed a commit to cbpygit/pandas that referenced this pull request Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants