pandas.arrays.DatetimeArray
-
class pandas.arrays.DatetimeArray(values, dtype=dtype('<M8[ns]'), freq=None, copy=False)[source] -
Pandas ExtensionArray for tz-naive or tz-aware datetime data.
New in version 0.24.0.
Warning
DatetimeArray is currently experimental, and its API may change without warning. In particular,
DatetimeArray.dtypeis expected to change to always be an instance of anExtensionDtypesubclass.Parameters: -
values : Series, Index, DatetimeArray, ndarray -
The datetime data.
For DatetimeArray
values(or a Series or Index boxing one),dtypeandfreqwill be extracted fromvalues, with precedence given to -
dtype : numpy.dtype or DatetimeTZDtype -
Note that the only NumPy dtype allowed is ‘datetime64[ns]’.
-
freq : str or Offset, optional -
copy : bool, default False -
Whether to copy the underlying array of values.
Attributes
None Methods
None -
© 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.arrays.DatetimeArray.html