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

  • (A) fillna()
  • (B) replace()
  • (C) update()
  • (D) substitute()
πŸ’¬ Discuss
βœ… Correct Answer: (B) replace()
Explanation: The replace() method can replace multiple values at once by passing a dictionary mapping old values to new values.
Explanation by: Sikhar Chaudhary
The replace() method can replace multiple values at once by passing a dictionary mapping old values to new values.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
66
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
81%
Success Rate