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
.dtnamespace.- 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:
See also
datetime.timedelta.total_secondsStandard library version of this method.
TimedeltaIndex.componentsReturn a DataFrame with components of each Timedelta.