🔥 3-day streak
Databricks Certified Machine Learning Associate1 / 137
Question 1 of 137

A data scientist has a scikit-learn model that expects a pandas DataFrame and returns a prediction plus a probability score. They want to distribute batch inference across a large Spark DataFrame by grouping records by 'region' and applying the model to each group's data as a pandas DataFrame using groupBy().applyInPandas(). What must be provided for this to execute correctly on Spark?

Reviewed for accuracy · Report an issueNext question