We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
numfocus
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 17f84af commit 2f70a1fCopy full SHA for 2f70a1f
doc/source/missing_data.rst
@@ -602,7 +602,8 @@ You can also operate on the DataFrame in place
602
argument to ``replace`` (``to_replace``) must match the type of the value
603
being replaced type. For example,
604
605
- .. code-block::
+ .. ipython:: python
606
+ :okexcept:
607
608
s = Series([True, False, True])
609
s.replace({'a string': 'new value', True: False})
@@ -612,7 +613,7 @@ You can also operate on the DataFrame in place
612
613
614
However, when replacing a *single* object such as,
615
616
617
618
619
s.replace('a string', 'another string')
0 commit comments