I'm trying to import data into database using Python, but before that I need to manipulate it with pandas.
I have a csv file that I read with reading = pd.read_csv("File.csv") and the data looks like this:
I want it to look like this:
I have tried pandas melt() and pivot() but they cut up the data in vary strange ways.
The problem is that there are like 150 countries in the headers as column names so I can't just parse them in usecols and so on.
Does anyone have any suggestions on how to tackle this?

