Q. Which function would you use to rename the index/column names in a dataframe?



Answer =

By using df.rename()

df.rename(index={“old row name”:”new row name ”})



Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post