pandas.PeriodIndex.month#

property PeriodIndex.month[源代码]#

月份(1月=1,12月=12)。

Examples

>>> idx = pd.PeriodIndex(["2023-01", "2023-02", "2023-03"], freq="M")
>>> idx.month
Index([1, 2, 3], dtype='int64')