Skip to content

Commit daac93c

Browse files
authored
CI/DOC: warning in docbuild (#44756)
1 parent aee6b7a commit daac93c

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

doc/source/whatsnew/v0.10.0.rst

+19-4
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ labeled the aggregated group with the end of the interval: the next day).
181181
``X0``, ``X1``, ...) can be reproduced by specifying ``prefix='X'``:
182182

183183
.. ipython:: python
184+
:okwarning:
184185
185186
import io
186187
@@ -197,11 +198,25 @@ labeled the aggregated group with the end of the interval: the next day).
197198
though this can be controlled by new ``true_values`` and ``false_values``
198199
arguments:
199200

200-
.. ipython:: python
201+
.. code-block:: ipython
201202
202-
print(data)
203-
pd.read_csv(io.StringIO(data))
204-
pd.read_csv(io.StringIO(data), true_values=["Yes"], false_values=["No"])
203+
In [4]: print(data)
204+
205+
a,b,c
206+
1,Yes,2
207+
3,No,4
208+
209+
In [5]: pd.read_csv(io.StringIO(data))
210+
Out[5]:
211+
a b c
212+
0 1 Yes 2
213+
1 3 No 4
214+
215+
In [6]: pd.read_csv(io.StringIO(data), true_values=["Yes"], false_values=["No"])
216+
Out[6]:
217+
a b c
218+
0 1 True 2
219+
1 3 False 4
205220
206221
- The file parsers will not recognize non-string values arising from a
207222
converter function as NA if passed in the ``na_values`` argument. It's better

0 commit comments

Comments
 (0)