pandas.PeriodDtype
- class pandas.PeriodDtype(freq=None)[source]
-
An ExtensionDtype for Period data.
This is not an actual numpy dtype, but a duck type.
- Parameters
-
- freq:str or DateOffset
-
The frequency of this PeriodDtype.
Examples
>>> pd.PeriodDtype(freq='D') period[D]
>>> pd.PeriodDtype(freq=pd.offsets.MonthEnd()) period[M]
Attributes
The frequency object of this PeriodDtype.
Methods
None
© 2008–2021, 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/1.3.4/reference/api/pandas.PeriodDtype.html