From 0747da5e1cf855297e9997888f105242a8fc12d7 Mon Sep 17 00:00:00 2001 From: Brock Date: Sat, 4 Dec 2021 10:44:19 -0800 Subject: [PATCH 1/2] CI/DOC: warning in docbuild --- doc/source/whatsnew/v0.10.0.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst index aa2749c85a232..5729cd13c104d 100644 --- a/doc/source/whatsnew/v0.10.0.rst +++ b/doc/source/whatsnew/v0.10.0.rst @@ -181,6 +181,7 @@ labeled the aggregated group with the end of the interval: the next day). ``X0``, ``X1``, ...) can be reproduced by specifying ``prefix='X'``: .. ipython:: python + :okwarning: import io From bad2f0dee56d821411a3001c21ca8158fc2047d8 Mon Sep 17 00:00:00 2001 From: Brock Date: Sat, 4 Dec 2021 13:37:14 -0800 Subject: [PATCH 2/2] code-block:: ipython --- doc/source/whatsnew/v0.10.0.rst | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst index 5729cd13c104d..bd47e6e4bc025 100644 --- a/doc/source/whatsnew/v0.10.0.rst +++ b/doc/source/whatsnew/v0.10.0.rst @@ -198,11 +198,25 @@ labeled the aggregated group with the end of the interval: the next day). though this can be controlled by new ``true_values`` and ``false_values`` arguments: -.. ipython:: python +.. code-block:: ipython - print(data) - pd.read_csv(io.StringIO(data)) - pd.read_csv(io.StringIO(data), true_values=["Yes"], false_values=["No"]) + In [4]: print(data) + + a,b,c + 1,Yes,2 + 3,No,4 + + In [5]: pd.read_csv(io.StringIO(data)) + Out[5]: + a b c + 0 1 Yes 2 + 1 3 No 4 + + In [6]: pd.read_csv(io.StringIO(data), true_values=["Yes"], false_values=["No"]) + Out[6]: + a b c + 0 1 True 2 + 1 3 False 4 - The file parsers will not recognize non-string values arising from a converter function as NA if passed in the ``na_values`` argument. It's better