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'``.