S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which pandas method is used to change column names in-place?

  • (A) columns()
  • (B) rename(columns=..., inplace=True)
  • (C) set_columns()
  • (D) update_columns()
  • Correct Answer - Option(B)
  • Views: 30
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
By using rename() with the inplace=True argument, the column names can be modified directly in the existing DataFrame.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics