Python | Pandas Timedelta.seconds
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier.
Timedelta is a subclass of
datetime.timedelta, and behaves in a similar manner. It is the pandas equivalent of python’s
datetime.timedelta and is interchangeable with it in most cases.
Timedelta.seconds property in
pandas.Timedelta is used to return Number of seconds.
Returns: return the Number of seconds.
3 days 06:05:01.000000 21901
7 days 00:15:03 903
0 days 00:02:13 133
Last Updated on October 24, 2021 by admin