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

πŸ‘οΈ
89
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
84%
Success Rate