Skip to content

Commit

Permalink
fix replace docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgianfaldoni committed Oct 30, 2023
1 parent 8956341 commit 80334ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pandas/core/shared_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,11 @@
.. deprecated:: 2.1.0
regex : bool or same types as `to_replace`, default False
Whether to interpret `to_replace` and/or `value` as regular
expressions. If this is ``True`` and value is not ``None``, then `to_replace` *must* be a
string. Alternatively, this could be a regular expression or a
expressions. If this is ``True``, `value` is not ``None`` and `to_replace` is a string,
then the replacement will be applied in all columns of the DataFrame.
If `value` is not ``None`` and `to_replace` is a dictionary, the dictionary keys will be
the DataFrame columns that the replacement will be applied.
Alternatively, this could be a regular expression or a
list, dict, or array of regular expressions in which case
`to_replace` must be ``None``.
method : {{'pad', 'ffill', 'bfill'}}
Expand Down

0 comments on commit 80334ca

Please sign in to comment.