pandas.Period.month — pandas 2.2.3 documentation (original) (raw)

Period.month#

Return the month this Period falls on.

Examples

period = pd.Period('2022-01', 'M') period.month 1