CBSE Class 12 Informatics Practices Question 110 of 167

Python Pandas — I — Question 21

Back to all questions
21
Question

Question 21

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

Answer

The rename() function in pandas is used to rename index or column names in a DataFrame.