pandas.arrays.TimedeltaArray¶
-
class
pandas.arrays.
TimedeltaArray
(values, dtype=dtype('<m8[ns]'), freq=<object object>, copy=False)[source]¶ Pandas ExtensionArray for timedelta data.
New in version 0.24.0.
Warning
TimedeltaArray is currently experimental, and its API may change without warning. In particular,
TimedeltaArray.dtype
is expected to change to be an instance of anExtensionDtype
subclass.- Parameters
- valuesarray-like
The timedelta data.
- dtypenumpy.dtype
Currently, only
numpy.dtype("timedelta64[ns]")
is accepted.- freqOffset, optional
- copybool, default False
Whether to copy the underlying array of data.
Attributes
None
Methods
None