I am trying to analyze chines GDP according to its provinces. I want to make a line chart that shows changing GDP over time but I cannot group them.
i want to pivot the table but it is not working as I want.
Asked
Active
Viewed 29 times
0

Abduhoshim
- 11
- 2
-
1Please see [ask] and [reprex]. Screenshots of code/data don't quite work here. – BigBen Mar 24 '22 at 14:09
-
`df.set_index("Year").T` – not_speshal Mar 24 '22 at 14:10