Vectorization vs apply(), map() and applymap() in pandas: differences and performance
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how vectorized pandas and NumPy operations differ from apply(), map() and applymap() when transforming data, and what that means for speed. Tests knowledge of where the work runs, which patterns are slow on large frames, and how to rewrite common transforms.