Answers for "rename index series pandas"

0

rename dataframe index column pandas

df.index.names = ['new_name']
Posted by: Guest on August-21-2020
0

Renaming an index in pandas data frame

df.rename(index={'Republic of Korea':'South Korea'},inplace=True)
Posted by: Guest on August-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language