Skip to content

Commit f3f3ef8

Browse files
author
Josiah Baker
committed
reformat argument list for unit paramter
1 parent 1c583a5 commit f3f3ef8

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

pandas/_libs/tslibs/timedeltas.pyx

+13-5
Original file line numberDiff line numberDiff line change
@@ -1215,12 +1215,20 @@ class Timedelta(_Timedelta):
12151215
Parameters
12161216
----------
12171217
value : Timedelta, timedelta, np.timedelta64, string, or integer
1218-
unit : {'Y', 'M', 'W', 'D', 'days', 'day', 'hours', hour', 'hr', 'h', 'm', \
1219-
'minute', 'min', 'minutes', 'T', 'S', 'seconds', 'sec', 'second', 'ms', \
1220-
'milliseconds', 'millisecond', 'milli', 'millis', 'L', 'us', 'microseconds', \
1221-
'microsecond', 'micro', 'micros', 'U', 'ns', 'nanoseconds', 'nano', 'nanos', \
1222-
'nanosecond', 'N'}, default 'ns'
1218+
unit : str, default 'ns'
12231219
Denote the unit of the input, if input is an integer.
1220+
1221+
Possible values:
1222+
1223+
* 'Y', 'M', 'W', 'D', 'T', 'S', 'L', 'U', or 'N'
1224+
* 'days' or 'day'
1225+
* 'hours', 'hour', 'hr', or 'h'
1226+
* 'minutes', 'minute', 'min', or 'm'
1227+
* 'seconds', 'second', or 'sec'
1228+
* 'milliseconds', 'millisecond', 'millis', or 'milli'
1229+
* 'microseconds', 'microsecond', 'micros', or 'micro'
1230+
* 'nanoseconds', 'nanosecond', 'nanos', 'nano', or 'ns'.
1231+
12241232
**kwargs
12251233
Available kwargs: {days, seconds, microseconds,
12261234
milliseconds, minutes, hours, weeks}.

0 commit comments

Comments
 (0)