When would you use pandas .where() or .mask()?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks when to use the pandas methods where and mask for conditional value replacement and how they compare with boolean indexing. Tests understanding of shape-preserving operations, missing-value behavior during comparisons, and everyday data cleaning patterns such as capping and blanking invalid entries.