Skip to content

CLN: remove unnecessary _convert_index_indexer #36394

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
Sep 17, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

Comment on lines 3254 to 3257
if isinstance(keyarr, Index):
keyarr = self._convert_index_indexer(keyarr)
pass
else:
keyarr = self._convert_arr_indexer(keyarr)
Copy link
Member

Choose a reason for hiding this comment

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

This will probably be even cleaner:

if not isinstance(keyarr, Index):
    keyarr = self._convert_arr_indexer(keyarr)

@dsaxton dsaxton added the Clean label Sep 16, 2020
@jreback jreback added this to the 1.2 milestone Sep 17, 2020
@jreback jreback merged commit 042515d into pandas-dev:master Sep 17, 2020
@jreback
Copy link
Contributor

jreback commented Sep 17, 2020

thanks, @ivanovmg point could be a followon

@jbrockmendel jbrockmendel deleted the ref-convert_index_indexer branch September 17, 2020 16:51
rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request Sep 17, 2020
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants