modin.pandas.TimedeltaIndex.seconds¶
- property TimedeltaIndex.seconds: Index[source]¶
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')