如何將pandas中的Periodindex中的時間數據提取出來,並轉化成時間數值列表數據?

使用period_range生成時間序列標籤 import numpy as np import pandas as pd df = pd.DataFrame({'rate':np.random.randn(10)},index = pd.period_range('2001','2010',freq = 'Y')) print(df.index) #輸出 '''PeriodIndex(['200
相關文章
相關標籤/搜索