Skip to content

REF: standardize get_indexer/get_indexer_non_unique code #38648

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 4 commits into from
Dec 23, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

@jreback jreback added the Indexing Related to indexing on series/frames, not to indexes themselves label Dec 22, 2020
@jreback jreback added this to the 1.3 milestone Dec 22, 2020
@jreback
Copy link
Contributor

jreback commented Dec 22, 2020

wow, glad to have you cleaning all of this up :->

@@ -2182,7 +2182,7 @@ def _nan_idxs(self):
if self._can_hold_na:
return self._isnan.nonzero()[0]
else:
return np.array([], dtype=np.int64)
return np.array([], dtype=np.intp)
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this cause a test breakage (on 32-bit)? (or are we not testing this particular case)

Copy link
Member Author

Choose a reason for hiding this comment

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

looks like we only really use _nan_idxs in Float64Index.get_loc, so this line wont be reached anyway

@jreback jreback merged commit 841cace into pandas-dev:master Dec 23, 2020
@jbrockmendel jbrockmendel deleted the ref-get_indexer_non_unique branch December 23, 2020 15:22
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants