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

PERF: Use shallow copies/remove unnecessary copies in reshaping #58959

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

mroeschke
Copy link
Member

In most of these cases, the axes is just modified. There is a case in _generate_marginal_results where I think a copy was made in order to avoid an old SettingWithCopy warning

@mroeschke mroeschke added Reshaping Concat, Merge/Join, Stack/Unstack, Explode Copy / view semantics labels Jun 7, 2024
@mroeschke mroeschke requested a review from phofl June 7, 2024 20:27
@mroeschke mroeschke added this to the 3.0 milestone Jun 7, 2024
@mroeschke
Copy link
Member Author

Looks like tests are passing here so merging

@mroeschke mroeschke merged commit f44ce13 into pandas-dev:main Jun 25, 2024
41 checks passed
@mroeschke mroeschke deleted the perf/reshaping/copy branch June 25, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Copy / view semantics Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant