Vectorized pandas UDFs (Iterator/Series) are preferred over row-at-a-time Python UDFs because:
Select an answer to reveal the explanation.
Short Explanation
Vectorized pandas UDFs batch via Arrow — way faster than row-wise Python UDFs.
Full Explanation
Arrow-backed vectorization reduces serialization overhead versus scalar Python UDFs.