-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Allow dict as the argument to Index.map (GH13517) #13518
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
Conversation
Current coverage is 84.33%@@ master #13518 diff @@
==========================================
Files 138 138
Lines 51107 51110 +3
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 43103 43106 +3
Misses 8004 8004
Partials 0 0
|
Function to be applied. | ||
|
||
Returns | ||
------- | ||
applied : array | ||
""" | ||
return self._arrmap(self.values, mapper) | ||
if isinstance(mapper, dict): |
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.
is_dict_like
covers a wider range of mappings
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.
Good point. Fixed.
I would ideally like to merge the |
can you rebase / update? |
closing, but pls reopen / comment if you can continue |
git diff upstream/master | flake8 --diff