这是我的csv文件
Country 2010 2011 2012 2013 2014
Albania 5.5 19.1 6.9 15.4 8
Algeria 18.2 6 8.1 20 9.5
American Samoa 14.1 13.8 3 14.7 2.3
Andorra 16 3 13.6 12.4 8.3
Angola 17.8 9.8 8.8 6.5 5.5
我的代码:
^{pr2}$输出:
the print test.shape command will output (14,1)
the print test.columns command will output(Index(['Country,2010,2011,2012,2013,2014'], dtype='object')
那么我怎么把它们分成6列呢
你的csv文件看起来不错:
相关问题 更多 >
编程相关推荐