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