S

Shyam Dubey • 3.70K Points
Extraordinary

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: 10
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
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.

Be the first to start discuss.