Skip to content

Commit 40aa082

Browse files
author
Josiah Baker
committed
remove extraneous edit, update unit args
based on pr feedback
1 parent 4af9c62 commit 40aa082

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

pandas/_libs/tslibs/nattype.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ timedelta}, default 'raise'
588588
589589
Raises
590590
------
591-
ValueError if the freq cannot be converted.
591+
ValueError if the freq cannot be converted
592592
""")
593593
floor = _make_nat_func('floor', # noqa:E128
594594
"""

pandas/_libs/tslibs/timedeltas.pyx

+6-8
Original file line numberDiff line numberDiff line change
@@ -1215,14 +1215,12 @@ class Timedelta(_Timedelta):
12151215
Parameters
12161216
----------
12171217
value : Timedelta, timedelta, np.timedelta64, string, or integer
1218-
unit : str, optional
1219-
Denote the unit of the input, if input is an integer. Default 'ns'.
1220-
Possible values:
1221-
{'Y', 'M', 'W', 'D', 'days', 'day', 'hours', hour', 'hr', 'h',
1222-
'm', 'minute', 'min', 'minutes', 'T', 'S', 'seconds', 'sec', 'second',
1223-
'ms', 'milliseconds', 'millisecond', 'milli', 'millis', 'L',
1224-
'us', 'microseconds', 'microsecond', 'micro', 'micros', 'U',
1225-
'ns', 'nanoseconds', 'nano', 'nanos', 'nanosecond', 'N'}.
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'
1223+
Denote the unit of the input, if input is an integer.
12261224
**kwargs
12271225
Available kwargs: {days, seconds, microseconds,
12281226
milliseconds, minutes, hours, weeks}.

pandas/_libs/tslibs/timestamps.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ timedelta}, default 'raise'
478478
479479
Raises
480480
------
481-
ValueError if the freq cannot be converted.
481+
ValueError if the freq cannot be converted
482482
"""
483483
return self._round(
484484
freq, RoundTo.NEAREST_HALF_EVEN, ambiguous, nonexistent

0 commit comments

Comments
 (0)