Skip to content

REF: de-duplicate CategoricalIndex._get_indexer #42042

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
Jun 16, 2021

Conversation

jbrockmendel
Copy link
Member

No description provided.

@simonjayhawkins simonjayhawkins added Categorical Categorical Data Type Refactor Internal refactoring of code Index Related to the Index class or subclasses Datetime Datetime data dtype labels Jun 16, 2021
res = com.asarray_tuplesafe(keyarr)
if not isinstance(keyarr, ExtensionArray):
# e.g. we don't want to cast DTA to ndarray[object]
res = com.asarray_tuplesafe(keyarr)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we just have ExtensionArray pass thru asarray_tuplesafe (would need to change the return signature), not sure if this is used enough to warrant but a thought.

@jreback jreback added this to the 1.4 milestone Jun 16, 2021
@jreback jreback merged commit 3659eda into pandas-dev:master Jun 16, 2021
@jbrockmendel jbrockmendel deleted the ref-ci-get_indexer branch June 16, 2021 14:10
iynehz pushed a commit to iynehz/pandas that referenced this pull request Jun 20, 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 Datetime Datetime data dtype Index Related to the Index class or subclasses Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants