Python | Pandas Timedelta.delta
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.delta property in
pandas.Timedelta is used to return the timedelta in nanoseconds.
Returns: return the timedelta in nanoseconds
3 days 06:05:01.000030 281101000030000
1 days 07:00:00 111600000000000
3 days 07:00:08 284408000000000