Skip to content

REF: make copy keyword in recode_for_categories keyword only #62019

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
Aug 4, 2025

Conversation

mroeschke
Copy link
Member

Follows up to #62000

recode_for_categories had a default copy=True to copy the passed codes if the codes didn't need re-coding. This PR makes this argument keyword only to make it explicit if the caller wants to copy - to avoid unnecessary copying when blindly using recode_for_categories

@mroeschke mroeschke added this to the 3.0 milestone Aug 1, 2025
@mroeschke mroeschke requested a review from rhshadrach as a code owner August 1, 2025 17:36
@mroeschke mroeschke added the Categorical Categorical Data Type label Aug 1, 2025
@jbrockmendel jbrockmendel merged commit 2ad2abd into pandas-dev:main Aug 4, 2025
43 checks passed
@jbrockmendel
Copy link
Member

Thanks @mroeschke

@mroeschke mroeschke deleted the ref/recode_for_categories branch August 4, 2025 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants