pandas.PeriodDtype — pandas 3.0.0.dev0+2098.g9c5b9ee823 documentation (original) (raw)
class pandas.PeriodDtype(freq)[source]#
An ExtensionDtype for Period data.
This is not an actual numpy dtype, but a duck type.
Parameters:
freqstr or DateOffset
The frequency of this PeriodDtype.
Attributes
Methods
See also
Represents a single time period.
Immutable index for period data.
Return a fixed frequency DatetimeIndex.
One-dimensional array with axis labels.
Two-dimensional, size-mutable, potentially heterogeneous tabular data.
Examples
pd.PeriodDtype(freq="D") period[D]
pd.PeriodDtype(freq=pd.offsets.MonthEnd()) period[M]