Please can you help me? This is the structure of my origin dataset:
Country | 2020 | 2021 |
---|---|---|
Ecuador | Value1 | Value2 |
Canada | Value1 | Value2 |
And i would like to get this structure, so the year is a index itself and not multiple columns:
Country | Year | Index |
---|---|---|
Ecuador | 2020 | Value1 |
Ecuador | 2021 | Value2 |
Canada | 2020 | Value1 |
Canada | 2021 | Value2 |
Thank you very much!