如何将 Pandas Series 的索引值从默认的常规整数值更改为我拥有的列表中的值?例如
x = pd.Series([421, 122, 275, 847, 175])
index_values = ['2014-01-01', '2014-01-02', '2014-01-03', '2014-01-04',
'2014-01-05']
Run Code Online (Sandbox Code Playgroud)
如何将列表中的日期index_values作为我创建的系列中的索引?