Why are vectorized operations preferred over apply()/iterrows() in pandas?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks why vectorized column operations are preferred over apply() and iterrows() in pandas, and when row-wise code is still acceptable. Tests understanding of interpreter overhead, dtype handling, index alignment, and rewriting row-wise logic for speed.