Как я могу изменить файл csv
на DataFrame
.
значения csv -
country,2015,2016,2017,2018,2019
Norway,4.141,4.152,4.157,4.166,4.168
Australia,4.077,4.086,4.093,4.110,4.115
Switzerland,4.009,4.036,4.032,4.041,4.046
Netherlands,3.977,3.994,4.043,4.045,4.045
UnitedStates,4.017,4.027,4.039,4.045,4.050
Germany,3.988,3.999,4.017,4.026,4.028
NewZealand,3.982,3.997,3.993,3.999,4.018
Я хочу формат данных DataFrame / таблицы как -
+----------------------------------------+
| Country| 1980| 1985| 1990| 2000| 2005|
+----------+-----+-----+-----+-----+-----+
| Norway|4.141|4.152|4.157|4.166|4.168|
| Australia|4.077 ...
......
......
......
|NewZealand|.......................|4.018|
+----------------------------------------+