Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
What role does StringIndexer play in the One Hot Encoding (OHE) process within Spark?
A
StringIndexer is utilized to generate dummy variables directly from categorical data.
B
StringIndexer assigns numerical indices to string labels, facilitating the OHE process.
C
StringIndexer replaces categorical variables with their numerical counterparts.
D
StringIndexer executes OHE on categorical variables without any preprocessing.