-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
Closed
Labels
Description
Currently some NaT's method docstrings directly mirror Timestamp's method docstrings via copy and pasting.
e.g.
pandas/pandas/_libs/tslibs/timestamps.pyx
Lines 646 to 650 in 4f71755
""" | |
Timestamp.fromtimestamp(ts) | |
timestamp[, tz] -> tz's local time from POSIX timestamp. | |
""" |
pandas/pandas/_libs/tslibs/nattype.pyx
Lines 368 to 372 in 4f71755
""" | |
Timestamp.utcfromtimestamp(ts) | |
Construct a naive UTC datetime from a POSIX timestamp. | |
""" |
We don't want to import Timestamp into nattype.pyx
to avoid a circular import. Ideally we should template the docstrings of both Timestamps
and NaT
methods to avoid this copy pasting.