Skip to content

Commit 8da317c

Browse files
committed
DOC: Solution for issue #60044
1 parent 2a10e04 commit 8da317c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,10 +1864,11 @@ class Timedelta(_Timedelta):
18641864
18651865
Parameters
18661866
----------
1867-
value : Timedelta, timedelta, np.timedelta64, str, or int
1867+
value : Timedelta, timedelta, np.timedelta64, str, int or float
18681868
Input value.
18691869
unit : str, default 'ns'
1870-
Denote the unit of the input, if input is an integer.
1870+
If input is an integer, denote the unit of the input.
1871+
If input is a float, denote the unit of the integer part and proportionally convert the decimal part.(If unit=None, ignore the decimal part.)
18711872
18721873
Possible values:
18731874

0 commit comments

Comments
 (0)