Starting in v0.15.0, we introduce a new scalar type
Timedelta, which is a subclass of
datetime.timedelta, and behaves in a similar manner, but allows compatibility with
np.timedelta64 types as well as a host of custom representation, parsing, and attributes.
Timedeltas are differences in times, expressed in difference units, e.g. days, hours, minutes, seconds. They can be both positive and negative.
You can construct a
Timedelta scalar through various arguments:
# strings In : pd.Timedelta('1 days') Out: Timedelta('1 days 00:00:00') In : pd.Timedelta('1 days 00:00:00')
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.