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.
Question 37 of 72
Free Preview · 72 of 238 · questions 1–72 of 238 are free. Sign up free to sync your progress across devices.
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.