Why are vectorized operations faster than apply() and iterrows() in Pandas?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks why vectorized column operations in Pandas run faster than row-wise apply() with Python functions or iterrows(). Tests understanding of interpreter overhead, typed contiguous arrays, per-row object creation and dtype coercion, and how to rewrite row-wise code with array operations.