modin.pandas.TimedeltaIndex.days

property TimedeltaIndex.days: Index[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/timedelta_index.py#L168-L189)

Number of days for each element.

Return type:

An Index with the days component of the timedelta.

Examples

>>> idx = pd.to_timedelta(["0 days", "10 days", "20 days"])
>>> idx
TimedeltaIndex(['0 days', '10 days', '20 days'], dtype='timedelta64[ns]', freq=None)
>>> idx.days
Index([0, 10, 20], dtype='int64')
Copy
Language: English