maxframe.liteframe.LiteFrame.dt.total_seconds#

LiteFrame.dt.total_seconds() → npt.NDArray[np.float64]#

Return total duration of each element expressed in seconds.

This method is available directly on TimedeltaArray, TimedeltaIndex and on Series containing timedelta values under the .dt namespace.

Returns:

When the calling object is a TimedeltaArray, the return type is ndarray. When the calling object is a TimedeltaIndex, the return type is an Index with a float64 dtype. When the calling object is a Series, the return type is Series of type float64 whose index is the same as the original.

Return type:

ndarray, Index or Series

See also

datetime.timedelta.total_seconds

Standard library version of this method.

TimedeltaIndex.components

Return a DataFrame with components of each Timedelta.