@@ -37,14 +37,19 @@ def to_timedelta(arg, unit='ns', box=True, errors='raise'):
3737 if False returns a np.timedelta64 or ndarray of values of dtype
3838 timedelta64[ns].
3939 errors : {'ignore', 'raise', 'coerce'}, default 'raise'
40- If 'raise', then invalid parsing will raise an exception.
41- If 'coerce', then invalid parsing will be set as NaT.
42- If 'ignore', then invalid parsing will return the input.
40+ - If 'raise', then invalid parsing will raise an exception.
41+ - If 'coerce', then invalid parsing will be set as NaT.
42+ - If 'ignore', then invalid parsing will return the input.
4343
4444 Returns
4545 -------
4646 ret : timedelta64/arrays of timedelta64 if parsing succeeded
4747
48+ See Also
49+ --------
50+ DataFrame.astype : Cast argument to a specified dtype.
51+ to_datetime : Convert argument to datetime.
52+
4853 Examples
4954 --------
5055
@@ -75,11 +80,6 @@ def to_timedelta(arg, unit='ns', box=True, errors='raise'):
7580
7681 >>> pd.to_timedelta(np.arange(5), box=False)
7782 array([0, 1, 2, 3, 4], dtype='timedelta64[ns]')
78-
79- See also
80- --------
81- pandas.DataFrame.astype : Cast argument to a specified dtype.
82- pandas.to_datetime : Convert argument to datetime.
8383 """
8484 unit = parse_timedelta_unit (unit )
8585
0 commit comments