Data-Analysis-fork-ds | Question 2
Last Updated :
01 May, 2022
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
Share your thoughts in the comments
Please Login to comment...