Skip to content

Commit 916da40

Browse files
committed
update doctests
1 parent 0eda6d9 commit 916da40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/tools/datetimes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ def to_datetime(
895895
896896
>>> pd.to_datetime(1490195805, unit="s")
897897
Timestamp('2017-03-22 15:16:45')
898-
>>> pd.to_datetime(1490195805433502912, unit="ns")
898+
>>> pd.to_datetime(1490195805433502912, unit="s")
899899
Timestamp('2017-03-22 15:16:45.433502912')
900900
901901
.. warning:: For float arg, precision rounding might happen. To prevent
@@ -905,7 +905,7 @@ def to_datetime(
905905
906906
>>> pd.to_datetime([1, 2, 3], unit="D", origin=pd.Timestamp("1960-01-01"))
907907
DatetimeIndex(['1960-01-02', '1960-01-03', '1960-01-04'],
908-
dtype='datetime64[ns]', freq=None)
908+
dtype='datetime64[s]', freq=None)
909909
910910
**Differences with strptime behavior**
911911

0 commit comments

Comments
 (0)