Skip to content

Commit

Permalink
Backport PR #52311 on branch 2.0.x (DOC: Clarify Timestamp(unit=) wil…
Browse files Browse the repository at this point in the history
…l not necessarily set unit) (#52360)

Backport PR #52311: DOC: Clarify Timestamp(unit=) will not necessarily set unit

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and mroeschke committed Apr 2, 2023
1 parent 39e0505 commit af8be1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pandas/_libs/tslibs/timestamps.pyx
Expand Up @@ -1290,6 +1290,9 @@ class Timestamp(_Timestamp):
Unit used for conversion if ts_input is of type int or float. The
valid values are 'D', 'h', 'm', 's', 'ms', 'us', and 'ns'. For
example, 's' means seconds and 'ms' means milliseconds.
For float inputs, the result will be stored in nanoseconds, and
the unit attribute will be set as ``'ns'``.
fold : {0, 1}, default None, keyword-only
Due to daylight saving time, one wall clock time can occur twice
when shifting from summer to winter time; fold describes whether the
Expand Down

0 comments on commit af8be1d

Please sign in to comment.