-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: Move Series logic from Index._get_values_for_loc #47975
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
REF: Move Series logic from Index._get_values_for_loc #47975
Conversation
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
a925651
to
0af361b
Compare
@@ -1062,7 +1063,24 @@ def _get_value(self, label, takeable: bool = False): | |||
|
|||
# Similar to Index.get_value, but we do not fall back to positional | |||
loc = self.index.get_loc(label) | |||
return self.index._get_values_for_loc(self, loc, label) | |||
|
|||
if is_integer(loc): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So since this PR has been opened code is no longer moved from Index._get_values_for_loc
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_values_for_loc can be removed after this. at the time this PR was opened there was another (deprecated) usage
Thanks @jbrockmendel |
* REF: Move Series logic from Index._get_values_for_loc * try again
Cleaner abstraction.