Skip to content

Series replace #17226

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

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4126,10 +4126,15 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,

See the examples section for examples of each of these.
value : scalar, dict, list, str, regex, default None
<<<<<<< HEAD
Value to use to fill holes (e.g. 0). Regular expressions, strings
and lists or dicts of such objects are also allowed.
=======
Value to use to fill holes (e.g. 0), alternately a dict of values
specifying which value to use for each column (columns not in the
dict will not be filled). Regular expressions, strings and lists or
dicts of such objects are also allowed.
>>>>>>> parent of 2b8c5ea88... DOC: Updated pd.Series.replace
inplace : boolean, default False
If True, in place. Note: this will modify any
other views on this object (e.g. a column form a DataFrame).
Expand Down