Skip to content
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

CoW: Set copy=False explicitly internally for Series and DataFrame in io/pytables #52032

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

phofl
Copy link
Member

@phofl phofl commented Mar 16, 2023

I didn't check here when setting copy=False earlier

Follow-up on #51834. This keeps copy=False internally where necessary, to avoid unnecessary copies as a side-effect of #51731 (by default copying numpy arrays in the DataFrame constructor) and #52022 (same for Series)

@phofl phofl added this to the 2.0 milestone Mar 16, 2023
@jorisvandenbossche jorisvandenbossche changed the title CoW: Set copy=False explicitly internally for Series and DataFrame CoW: Set copy=False explicitly internally for Series and DataFrame in io/pytables Mar 17, 2023
@jorisvandenbossche jorisvandenbossche merged commit 48e600b into pandas-dev:main Mar 17, 2023
@phofl phofl deleted the cow_copy_false_explicitly branch March 17, 2023 15:09
meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Mar 17, 2023
phofl added a commit that referenced this pull request Mar 17, 2023
…ternally for Series and DataFrame in io/pytables) (#52049)

Backport PR #52032: CoW: Set copy=False explicitly internally for Series and DataFrame in io/pytables

Co-authored-by: Patrick Hoefler <61934744+phofl@users.noreply.github.com>
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.

2 participants