pandas.Timedelta.components#

Timedelta.components#

Return a components namedtuple-like.

Examples

>>> td = pd.Timedelta('2 day 4 min 3 us 42 ns')
>>> td.components
Components(days=2, hours=0, minutes=4, seconds=0, milliseconds=0,
    microseconds=3, nanoseconds=42)