Skip to content

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