将熊猫数据框(具有多列)转换为序列

我正在尝试转换如下所示的数据框:

             ds          y
0    1999-01-04   0.000000
1    1999-01-05   1.330603
2    1999-01-06   4.556447
3    1999-01-07   6.823689
4    1999-01-08   8.949833
...         ...        ...
5377 2020-05-18  34.497940

到看起来像的系列

1999-01-04   0.000000
1999-01-05   1.330603
1999-01-06   4.556447
1999-01-07   6.823689
1999-01-08   8.949833
...         ...       
2020-05-18  34.497940

I have looked at: Convert pandas data frame to series (and many others) and I still cannot accomplish the task.

将不胜感激。

评论