Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Databricks Certified Machine Learning Professional · Databricks
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
- StringIndexer encodes a string column of labels into a column of label indices. It assigns numeric indices based on label frequency, with the most frequent label getting index 0. This is a necessary preprocessing step for algorithms that require numeric inputs.