Skip to content

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