pandas.TimedeltaIndex.as_unit#

TimedeltaIndex.as_unit(unit)[source]#

Convert to a dtype with the given unit resolution.

Parameters
unit{‘s’, ‘ms’, ‘us’, ‘ns’}
Returns
same type as self