S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method is used to replace values in a DataFrame or Series?

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

Explanation by: Shyam Dubey

The replace() method replaces specified values with another value in a DataFrame or Series.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.