Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2f70a1f

Browse files
committedFeb 19, 2014
DOC: use ipython in bool replace doc warning
1 parent 17f84af commit 2f70a1f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎doc/source/missing_data.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,8 @@ You can also operate on the DataFrame in place
602602
argument to ``replace`` (``to_replace``) must match the type of the value
603603
being replaced type. For example,
604604

605-
.. code-block::
605+
.. ipython:: python
606+
:okexcept:
606607
607608
s = Series([True, False, True])
608609
s.replace({'a string': 'new value', True: False})
@@ -612,7 +613,7 @@ You can also operate on the DataFrame in place
612613

613614
However, when replacing a *single* object such as,
614615

615-
.. code-block::
616+
.. ipython:: python
616617
617618
s = Series([True, False, True])
618619
s.replace('a string', 'another string')

0 commit comments

Comments
 (0)
Please sign in to comment.