Skip to content

COMPAT: make Categorical._codes settable again #40580

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 1 commit into from
Mar 24, 2021

Conversation

jorisvandenbossche
Copy link
Member

This is a follow-up on #40033, which changes the _code attribute of a Categorical into a property without a setter.

This broke dask / fastparquet, so this PR is making it settable again. We could deprecate the setter, though, at the same time.

@jorisvandenbossche jorisvandenbossche added Compat pandas objects compatability with Numpy or Python functions Categorical Categorical Data Type labels Mar 23, 2021
@jorisvandenbossche jorisvandenbossche added this to the 1.3 milestone Mar 23, 2021
@jbrockmendel
Copy link
Member

We could deprecate the setter, though, at the same time

+1

@jreback
Copy link
Contributor

jreback commented Mar 23, 2021

This broke dask / fastparquet, so this PR is making it settable again. We could deprecate the setter, though, at the same time.

new PR? or this one?

@jorisvandenbossche
Copy link
Member Author

Let's merge this to fix dask's CI. We can deprecate it in a follow-up / together with providing an alternative.

@jorisvandenbossche jorisvandenbossche merged commit 7d9dd1a into pandas-dev:master Mar 24, 2021
@jorisvandenbossche jorisvandenbossche deleted the cat-codes branch March 24, 2021 07:28
@jorisvandenbossche
Copy link
Member Author

I opened #40606 marked for 1.3, so we don't forget this

vladu pushed a commit to vladu/pandas that referenced this pull request Apr 5, 2021
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Compat pandas objects compatability with Numpy or Python functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants