I have this sample of a data frame showing population over the years.
I want to remove the row labels ‘Country Code’ altogether and have the next column, ‘Country Name’, as the row labels instead. How can I do this?
Please let me know if you need more information or anything is not clear.
Thank you.
>Solution :
df = df.set_index('Country Name')
