S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which method is used to replace multiple values in a DataFrame at once?

  • (A) fillna()
  • (B) replace()
  • (C) update()
  • (D) substitute()
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
The replace() method can replace multiple values at once by passing a dictionary mapping old values to new values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics