From 45c379883e027c8914f121702ba15de7b7e6a215 Mon Sep 17 00:00:00 2001 From: Brock Date: Wed, 1 Nov 2023 12:55:09 -0700 Subject: [PATCH] code-block --- doc/source/whatsnew/v0.17.0.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/whatsnew/v0.17.0.rst b/doc/source/whatsnew/v0.17.0.rst index a29583cf2dd9a..ec441688fc91e 100644 --- a/doc/source/whatsnew/v0.17.0.rst +++ b/doc/source/whatsnew/v0.17.0.rst @@ -632,10 +632,10 @@ Of course you can coerce this as well. To keep the previous behavior, you can use ``errors='ignore'``: -.. ipython:: python - :okwarning: +.. code-block:: ipython - pd.to_datetime(["2009-07-31", "asd"], errors="ignore") + In [4]: pd.to_datetime(["2009-07-31", "asd"], errors="ignore") + Out[4]: Index(['2009-07-31', 'asd'], dtype='object') Furthermore, ``pd.to_timedelta`` has gained a similar API, of ``errors='raise'|'ignore'|'coerce'``, and the ``coerce`` keyword has been deprecated in favor of ``errors='coerce'``.