Period.quarter
Return the quarter this Period falls on.
Examples
>>> period = pd.Period('2022-04', 'M') >>> period.quarter 2
previous
pandas.Period.month
next
pandas.Period.qyear