-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: cleanup whatsnew entry for na_action='ignore' #52355
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
DOC: cleanup whatsnew entry for na_action='ignore' #52355
Conversation
|
||
Frequently, it is not desirable to apply the callable to nan-like values of the array and to avoid doing | ||
that, the ``map`` method could be called with ``na_action="ignore"``, e.g. like this: ``ser.map(func, na_action="ignore")``. | ||
However, ``na_action="ignore"`` was not implemented for many ``ExtensionArray`` and ``Index`` types |
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.
Could you note specifically which types
na_action
is now consistently respected? (the datetime likes and period)?
I made a new version. I think its difficult to explain what didn't work correctly succintly. There were some patterns that worked correctly, other failed, while other gave a wrong result for the same ExtensionArray (e.g. the Categorical example below).
In short, .map
could behave very erratic 😄.
Co-authored-by: Matthew Roeschke <[email protected]>
Co-authored-by: Matthew Roeschke <[email protected]>
Co-authored-by: Matthew Roeschke <[email protected]>
Co-authored-by: Matthew Roeschke <[email protected]>
I’ve updated. |
Thanks @topper-123 |
* DOC: cleanup whatsnew entry for na_action='ignore' * Update doc/source/whatsnew/v2.1.0.rst Co-authored-by: Matthew Roeschke <[email protected]> * Update doc/source/whatsnew/v2.1.0.rst Co-authored-by: Matthew Roeschke <[email protected]> * Update doc/source/whatsnew/v2.1.0.rst Co-authored-by: Matthew Roeschke <[email protected]> * Update doc/source/whatsnew/v2.1.0.rst Co-authored-by: Matthew Roeschke <[email protected]> * update comment --------- Co-authored-by: Matthew Roeschke <[email protected]>
No description provided.