pandas.Timedelta.total_seconds — pandas 2.2.3 documentation (original) (raw)
- API reference
- pandas arrays, scalars, and data types
- pandas.Timed...
Timedelta.total_seconds()#
Total seconds in the duration.
Examples
td = pd.Timedelta('1min') td Timedelta('0 days 00:01:00') td.total_seconds() 60.0