pandas.to_timedelta(*args, **kwargs) [source]
Convert argument to timedelta Parameters:
arg : string, timedelta, list, tuple, 1-d array, or Series unit : unit of the arg (D,h,m,s,ms,us,ns) denote the unit, which is an integer/float number box : boolean, default True If True returns a Timedelta/TimedeltaIndex of the results if False returns a np.timedelta64 or ndarray of values of dtype timedelta64[ns] errors : {?ignore?, ?raise?, ?coerce?}, default ?raise? If ?raise?, then invalid pars