Skip to content

REF: Remove CategoricalIndex.get_value #31765

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 12 commits into from
Feb 9, 2020

Conversation

jbrockmendel
Copy link
Member

It is no longer needed following #31724.

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

In checking this, I noticed that this PR might fix the following bug (the current get_value fails in take with a different error than those catched when being passed a boolean mask):

s = pd.Series(range(5), index=pd.Categorical(['a', 'b', 'c', 'a', 'b']))                                                                                                                                   
s['a']    

could you add a test for that?

@jbrockmendel
Copy link
Member Author

could you add a test for that?

Sure. Is there an associated issue?

@gfyoung gfyoung added Clean Indexing Related to indexing on series/frames, not to indexes themselves labels Feb 9, 2020
@jreback jreback added this to the 1.1 milestone Feb 9, 2020
@jreback jreback added the Categorical Categorical Data Type label Feb 9, 2020
@jreback jreback merged commit 24d1657 into pandas-dev:master Feb 9, 2020
@jreback
Copy link
Contributor

jreback commented Feb 9, 2020

thanks

@jbrockmendel jbrockmendel deleted the categorical-get_value branch February 9, 2020 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Clean Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants