pandas.PeriodIndex.hour# property PeriodIndex.hour[源代码]# 该期间的小时。 Examples >>> idx = pd.PeriodIndex(["2023-01-01 10:00", "2023-01-01 11:00"], freq='h') >>> idx.hour Index([10, 11], dtype='int64')