Skip to content

Commit

Permalink
fix doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel committed Apr 29, 2024
1 parent a26cb9e commit 2aae24f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/source/whatsnew/v3.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,10 @@ The inferred resolution now matches that of the input strings:
In cases with mixed-resolution inputs, the highest resolution is used:

.. ipython:: python
.. code-block:: ipython
In [2]: pd.to_datetime(["2024-03-22 11:43:01", "2024-03-22 11:43:01.002"]).dtype
In [2]: pd.to_datetime([pd.Timestamp("2024-03-22 11:43:01"), "2024-03-22 11:43:01.002"]).dtype
Out[2]: dtype('<M8[ns]')
.. _whatsnew_300.api_breaking.deps:

Expand Down

0 comments on commit 2aae24f

Please sign in to comment.