Skip to content

Commit 24fdde6

Browse files
author
Antonio Fonseca
authored
DOC: to_datetime origin argument not unit specific (pandas-dev#56151)
1 parent 0437fdb commit 24fdde6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/tools/datetimes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,8 @@ def to_datetime(
843843
to the day starting at noon on January 1, 4713 BC.
844844
- If Timestamp convertible (Timestamp, dt.datetime, np.datetimt64 or date
845845
string), origin is set to Timestamp identified by origin.
846-
- If a float or integer, origin is the millisecond difference
847-
relative to 1970-01-01.
846+
- If a float or integer, origin is the difference
847+
(in units determined by the ``unit`` argument) relative to 1970-01-01.
848848
cache : bool, default True
849849
If :const:`True`, use a cache of unique, converted dates to apply the
850850
datetime conversion. May produce significant speed-up when parsing

0 commit comments

Comments
 (0)