pandas.PeriodIndex.day_of_week# property PeriodIndex.day_of_week[源代码]# 一周中的某一天,星期一=0,星期日=6。 例子 >>> idx = pd.PeriodIndex(["2023-01-01", "2023-01-02", "2023-01-03"], freq="D") >>> idx.weekday Index([6, 0, 1], dtype='int64')