Skip to content

DataFrame.replace with dict doesn't work when value=None #46930

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 20 commits into from
May 3, 2022

Conversation

stanleycai95
Copy link
Contributor

@stanleycai95 stanleycai95 commented May 2, 2022

@pep8speaks
Copy link

pep8speaks commented May 2, 2022

Hello @stanleycai95! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2022-05-02 22:49:26 UTC

@mroeschke mroeschke added the Docs label May 3, 2022
@mroeschke mroeschke added this to the 1.5 milestone May 3, 2022
@mroeschke mroeschke merged commit 230990d into pandas-dev:main May 3, 2022
@mroeschke
Copy link
Member

Thanks @stanleycai95

yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
…46930)

* _map_values for Series, na_action must be None or "ignore"

* Updating docstring for na_action in Series

* Revert to old docstring

* Use tuple instead of list

* Revert to previous commit

* Add test for map with invalid na_action argument

* Conforming to pep style

* Series.map raises if arg is dict but na_action not None or ignore

* Update msg

* Update f-string

* Use pytest.mark.parametrize

* Update variable names

* Adding backticks

* Removing extraneous comment

* value should not be given

* Value param should not be specified

* Remove trailing whitespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: DataFrame.replace with dict doesn't work when value=None
3 participants