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