Return the total hours, minutes, and seconds of the timedelta as seconds.
Timedelta.seconds = hours * 3600 + minutes * 60 + seconds.
Number of seconds.
See also
Timedelta.components
Return all attributes with assigned values (i.e. days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds).
Timedelta.total_seconds
Express the Timedelta as total number of seconds.
Examples
Using string input
>>> td = pd.Timedelta('1 days 2 min 3 us 42 ns') >>> td.seconds 120
Using integer input
>>> td = pd.Timedelta(42, unit='s') >>> td.seconds 42
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4