When would you use a lambda function in Pandas, particularly with methods like apply()?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks when a lambda function is the right tool in Pandas, especially with apply(), and when a named function or a vectorized operation is the better choice. Tests practical judgment about readability, performance on large frames and edge cases such as missing values.