I currently have similar dataframe:
Year CH US EU
1990 10 15 12
2000 13 18 15
2010 20 22 19
2020 26 27 22
And I need a code to rearrange data frame dimensions to obtain this:
Year Region Value
1990 CH 10
1990 US 15
1990 EU 12
2000 CH 13
2000 US 18
2000 EU 15
2010 CH 20
2010 US 22
2010 EU 19
2020 CH 26
2020 US 27
2020 EU 22
And another code to do it vice versa