Skip to content

REF: move _convert_to_indexer to Loc #31554

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
Feb 1, 2020

Conversation

jbrockmendel
Copy link
Member

It is overriden in iLoc, so by putting it directly in Loc we can simplify bits of it that check self.name and keep only the self.name == "loc" branches. This lets us get rid of a bit of dead code (L1638-L1642).

Most of the diff is misleading; it is only the one method that is moved, with a placeholder kept in NDFrameIndexer

@jreback jreback added Indexing Related to indexing on series/frames, not to indexes themselves Refactor Internal refactoring of code labels Feb 1, 2020
@jreback jreback added this to the 1.1 milestone Feb 1, 2020
@jreback jreback merged commit d4d1e32 into pandas-dev:master Feb 1, 2020
@jreback
Copy link
Contributor

jreback commented Feb 1, 2020

great!

@jbrockmendel jbrockmendel deleted the convert_to_indexer branch February 1, 2020 22:40
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 Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants