
Answer-first summary for fast verification
Answer: To transform textual data into numerical format without losing categorical meaning
The StringIndexer is crucial for converting textual data into numerical format, ensuring the categorical context is preserved. This conversion is essential for machine learning algorithms that operate on numerical inputs.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.