modin.pandas.TimedeltaIndex.components¶
- property TimedeltaIndex.components: NoReturn[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/utils/error_message.py#L85-L94)¶
Return a DataFrame of the individual resolution components of the Timedeltas.
The components (days, hours, minutes seconds, milliseconds, microseconds, nanoseconds) are returned as columns in a DataFrame.
- Return type:
A DataFrame
Examples
>>> idx = pd.to_timedelta(['1 day 3 min 2 us 42 ns']) >>> idx TimedeltaIndex(['1 days 00:03:00.000002042'], dtype='timedelta64[ns]', freq=None) >>> idx.components days hours minutes seconds milliseconds microseconds nanoseconds 0 1 0 3 0 0 2 42