Hey,
For my studies I had to reshape some datas. I work on the data of Democracy - Our World in Data in the category "polity". It gives us a .cvs in which we had one ligne for each year for each country
For example :
|1|Afghanistan|AFG|1800|-6|
|2|Afghanistan|AFG|1801|-6|
|3|Afghanistan|AFG|1802|-6|
It had been 3 hours that I tried to obtain something of this shape with the function pivot_wider :
................... 1800. 1801. 1802.
Afghanistan -6 -6 -6
I didn't find how to get this result.
Could you help me please ?
Thnaks !