pandas.Period.month#

Period.month#

返回 Period 所属的月份。

Examples

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