Skip to content

ENH add na_action to DataFrame.applymap #35704

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 5 commits into from
Sep 11, 2020

Conversation

jnothman
Copy link
Contributor

For symmetry with Series.map

@jreback jreback added the Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate label Aug 14, 2020
@@ -50,6 +50,7 @@ For example:

Other enhancements
^^^^^^^^^^^^^^^^^^
- :meth:`applymap` now supports ``na_action`` (:issue:`23803`)
Copy link
Contributor

Choose a reason for hiding this comment

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

this won't render, use DataFrame.applymap

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was surprised by similar usage elsewhere in this file, which I copied:
https://github.com/pandas-dev/pandas/blob/6325a33/doc/source/whatsnew/v1.2.0.rst#L35

@jnothman
Copy link
Contributor Author

Apologies for my omissions! Thanks for the review.

@jnothman
Copy link
Contributor Author

Failure appears unrelated

@jreback jreback added this to the 1.2 milestone Sep 5, 2020
@jreback
Copy link
Contributor

jreback commented Sep 5, 2020

looks good, can you merge master and ping on green.

@jnothman
Copy link
Contributor Author

jnothman commented Sep 8, 2020

@jreback it's green :)

@jreback jreback merged commit b2dda5a into pandas-dev:master Sep 11, 2020
@jreback
Copy link
Contributor

jreback commented Sep 11, 2020

thanks @jnothman very nice

kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: add na_action argument to applymap
2 participants