What is the difference between apply() and map() in pandas?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how the apply and map methods differ in pandas, on a Series and on a DataFrame. Tests what each method accepts, what the function receives, how unmatched lookup values are handled, and when a vectorized expression is the better choice.