pandas.PeriodIndex.quarter#

property PeriodIndex.quarter[源代码]#

日期的四分之一。

例子

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