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

Period

Represents a period of time.

PeriodIndex

Immutable ndarray holding ordinal values indicating regular periods.

PeriodDtype

An ExtensionDtype for Period data.

date_range

Return a fixed frequency range of dates.

Examples

>>> dtype = pd.PeriodDtype(freq="D")
>>> dtype.freq
<Day>