modin.pandas.TimedeltaIndex.seconds¶
- property TimedeltaIndex.seconds: Index[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/timedelta_index.py#L191-L212)¶
Number of seconds (>= 0 and less than 1 day) for each element.
- Return type:
An Index with seconds component of the timedelta.
Examples
>>> idx = pd.to_timedelta([1, 2, 3], unit='s') >>> idx TimedeltaIndex(['0 days 00:00:01', '0 days 00:00:02', '0 days 00:00:03'], dtype='timedelta64[ns]', freq=None) >>> idx.seconds Index([1, 2, 3], dtype='int64')