Skip to content

Commit c550006

Browse files
committed
styling/linting
1 parent 5c260da commit c550006

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/core/tools/timedeltas.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ def to_timedelta(arg, unit='ns', box=True, errors='raise'):
2121
Convert argument to timedelta.
2222
2323
Timedeltas are absolute differences in times, expressed in difference
24-
units e.g. days, hours, minutes, seconds. This method converts an argument
24+
units e.g. (days, hours, minutes, seconds). This method converts an argument
2525
from a recognized timedelta format / value into a Timedelta type.
2626
2727
Parameters
2828
----------
29-
arg : str, timedelta, list, tuple, 1-d array, or Series
29+
arg : str, timedelta, list, tuple, 1-d array, or Series
3030
The argument which needs to be converted to timedelta.
3131
unit : str, default 'ns'
3232
Denotes the unit (D,h,m,s,ms,us,ns) of the arg.
3333
box : bool, default True
3434
- If True returns a Timedelta/TimedeltaIndex of the results.
35-
- if False returns a np.timedelta64 or ndarray of values of dtype
35+
- If False returns a np.timedelta64 or ndarray of values of dtype
3636
timedelta64[ns].
3737
errors : {'ignore', 'raise', 'coerce'}, default 'raise'
3838
- If 'raise', then invalid parsing will raise an exception.
@@ -41,7 +41,8 @@ def to_timedelta(arg, unit='ns', box=True, errors='raise'):
4141
4242
Returns
4343
-------
44-
ret : timedelta64/arrays of timedelta64 if parsing succeeded
44+
timedelta64 or numpy.array of timedelta64
45+
Output type returned if parsing succeeded.
4546
4647
See Also
4748
--------

0 commit comments

Comments
 (0)