My current dataset looks like the picture above (First picture). I want it in a shape like this (Second picture):
country 1945 1950 1951 Afghanistan 0.01 0.08 0.09 Zimbabwe 0.5 0.6 0.7
So every data for a single country is in a single row.
Can someone help me achive this using Python and Pandas