pandas.PeriodDtype.freq#
- property PeriodDtype.freq[source]#
The frequency object of this PeriodDtype.
The freq property returns the BaseOffset object that represents the frequency of the PeriodDtype. This frequency specifies the interval (e.g., daily, monthly, yearly) associated with the Period type. It is essential for operations that depend on time-based calculations within a period index or series.
See also
PeriodRepresents a period of time.
PeriodIndexImmutable ndarray holding ordinal values indicating regular periods.
PeriodDtypeAn ExtensionDtype for Period data.
date_rangeReturn a fixed frequency range of dates.
Examples
>>> dtype = pd.PeriodDtype(freq="D") >>> dtype.freq <Day>