QuestionQ5

VerifiedDatabricks Machine Learning

Which of the following is an advantage of using vectorized pandas UDFs rather than standard PySpark UDFs?

Explanation

Vectorized pandas UDFs use Apache Arrow to transfer column data in batches and apply operations to Pandas Series or DataFrames. Processing batches rather than individual rows reduces Python and serialization overhead, improving performance for suitable workloads.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!