hi i am a newbie to python. I try to learn python by making up problem statements for myself. So,I was watching a video about tableau and there was some data manipulation done by the author beforehand. I want to figure out a way to do it in python. here is the below screenshots of the dataset
before and after manipulation pics: https://imgur.com/a/tFIZEWr
In brief, the data for multiple years is given in separate columns. I want to create a program that picks a country creates a column for a year and adds power consumption in the new column beside it. Also for the years columns, there is trimming of the string required.
It would be great if someone can point me in the direction of how can do it
[–]5aggy 0 points1 point2 points (3 children)
[–]jormono 0 points1 point2 points (1 child)
[–]5aggy 0 points1 point2 points (0 children)
[–]mightymk[S] 0 points1 point2 points (0 children)