Skip to content

Commit 53559a4

Browse files
committed
DOC: Make the value parameter of pandas.Timedelta can accept float
1 parent 039af7e commit 53559a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,8 +1868,8 @@ class Timedelta(_Timedelta):
18681868
Input value.
18691869
unit : str, default 'ns'
18701870
If input is an integer, denote the unit of the input.
1871-
If input is a float, denote the unit of integer parts.
1872-
(If unit = None, ignore decimal parts. Otherwise proportionally convert them.)
1871+
If input is a float, denote the unit of the integer parts.
1872+
(The decimal parts with an accuracy higher than 1 nanosecond are ignored.)
18731873
18741874
Possible values:
18751875

0 commit comments

Comments
 (0)