Skip to content

Commit a09ea5e

Browse files
authored
DOC: Clarify Timestamp(unit=) will not necessarily set unit (#52311)
1 parent ac79adc commit a09ea5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/_libs/tslibs/timestamps.pyx

+3
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,9 @@ class Timestamp(_Timestamp):
12931293
Unit used for conversion if ts_input is of type int or float. The
12941294
valid values are 'D', 'h', 'm', 's', 'ms', 'us', and 'ns'. For
12951295
example, 's' means seconds and 'ms' means milliseconds.
1296+
1297+
For float inputs, the result will be stored in nanoseconds, and
1298+
the unit attribute will be set as ``'ns'``.
12961299
fold : {0, 1}, default None, keyword-only
12971300
Due to daylight saving time, one wall clock time can occur twice
12981301
when shifting from summer to winter time; fold describes whether the

0 commit comments

Comments
 (0)