且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将单列Pandas DataFrame转换为Series

更新时间:2022-03-17 03:48:58

尝试交换括号中的索引:

Try swapping the indices in the brackets:

df.iloc[:,0]

这应该有效.