Skip to content

Commit 4a3048c

Browse files
taljaardsrhshadrach
authored andcommitted
Remove deprecated Y and M from to_timedelta (pandas-dev#33869)
1 parent 2d004e3 commit 4a3048c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/tools/timedeltas.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def to_timedelta(arg, unit="ns", errors="raise"):
2828
The data to be converted to timedelta.
2929
unit : str, default 'ns'
3030
Denotes the unit of the arg. Possible values:
31-
('Y', 'M', 'W', 'D', 'days', 'day', 'hours', hour', 'hr',
32-
'h', 'm', 'minute', 'min', 'minutes', 'T', 'S', 'seconds',
31+
('W', 'D', 'days', 'day', 'hours', hour', 'hr', 'h',
32+
'm', 'minute', 'min', 'minutes', 'T', 'S', 'seconds',
3333
'sec', 'second', 'ms', 'milliseconds', 'millisecond',
3434
'milli', 'millis', 'L', 'us', 'microseconds', 'microsecond',
3535
'micro', 'micros', 'U', 'ns', 'nanoseconds', 'nano', 'nanos',

0 commit comments

Comments
 (0)