Timedelta.to_pytimedelta()
Convert a pandas Timedelta object into a python timedelta object.
Timedelta objects are internally saved as numpy datetime64[ns] dtype. Use to_pytimedelta() to convert to object dtype.
Returns: |
|
---|
See also
to_timedelta
Any nanosecond resolution will be lost.
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Timedelta.to_pytimedelta.html