I pivoted a DF, setted the indexes according the organization I want.
But I'm not able to create a graph with years in x-axis and each country with its value. In order to show to evolution of each country.
I tried Seaborn and Matplotlib and I wasn't able to do so.
The link for my GitHub: https://github.com/IgorComune/RenewableEnergy/blob/main/RenewableEnergy.ipynb
table = pd.pivot_table(top_20_average,index=['country','year'])
table
country year gerenation_renewables_per_capita
Austria 2000 5382.823150
2001 5215.238330
2002 5150.725350
2003 4311.643836
2004 4822.806377
... ... ...
Venezuela 2015 2467.522106
2016 2090.616730
2017 2039.997279
2018 1995.568941
2019 1827.675691
380 rows × 1 columns
