pandas.Timedelta.total_seconds — pandas 3.0.0.dev0+2102.g839747c3f6 documentation (original) (raw)
- API reference
- pandas arrays, scalars, and data types
- pandas.Timedelta.total_seconds
Timedelta.total_seconds()#
Total seconds in the duration.
This method calculates the total duration in seconds by combining the days, seconds, and microseconds of the Timedelta object.
See also
Convert argument to timedelta.
Represents a duration, the difference between two dates or times.
Returns the seconds component of the timedelta.
Returns the microseconds component of the timedelta.
Examples
td = pd.Timedelta('1min') td Timedelta('0 days 00:01:00') td.total_seconds() 60.0