pandas.Series.dt.total_seconds

pandas 3.1.1 · Series and accessors · method

Express a duration as seconds, including its fractional portion.

Call syntax

Series.dt.total_seconds()

Run the example

Edit the example and select Run Python to see the result.

Parameters

This call takes no arguments.

Returns

ndarray, Index or Series