Open In App

Data-Analysis-fork-ds | Question 2

Last Updated : 01 May, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Q2. Consider the dataframe “df”, what does the command df.rename(columns={‘a’:’b’}) change about the dataframe “df”

(A)

rename column “a” of the dataframe to “b”

(B)

rename the row “a” to “b”

(C)

nothing as you must set the parameter “inplace =True ” 


Answer: (C)

Explanation:

Quiz of this Question
Please comment below if you find anything wrong in the above post


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads