Skip to content

REF: turn _try_mi into MultiIndex._get_values_for_loc #31736

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

Conversation

jbrockmendel
Copy link
Member

Discussed in #31640.

@jbrockmendel
Copy link
Member Author

The travis page says its green, not sure why it shows yellow here

@jbrockmendel jbrockmendel added the Indexing Related to indexing on series/frames, not to indexes themselves label Feb 6, 2020
@jreback jreback added MultiIndex Refactor Internal refactoring of code labels Feb 9, 2020
@jreback jreback added this to the 1.1 milestone Feb 9, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

a followon request

def _get_values_for_loc(self, series: "Series", loc, key):
"""
Do a positional lookup on the given Series, returning either a scalar
or a Series.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would rename to _get_values_for_positional_loc to make this extra clear (I know for indexes we only have the concept of positional indexing, but still). follown ok.

also pls type / doc-string as much as possible

Copy link
Member Author

Choose a reason for hiding this comment

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

_get_values_for_positional_loc

good idea, will follow up

@jreback jreback merged commit c389222 into pandas-dev:master Feb 9, 2020
@jbrockmendel jbrockmendel deleted the mi-get_value branch February 9, 2020 17:26
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 MultiIndex Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants