pandas.Period.year — pandas 2.2.3 documentation (original) (raw)
Period.year#
Return the year this Period falls on.
Examples
period = pd.Period('2022-01', 'M') period.year 2022
Period.year#
Return the year this Period falls on.
Examples
period = pd.Period('2022-01', 'M') period.year 2022