🔥 3-day streak
Databricks Certified Machine Learning Associate72 / 137
Question 72 of 137
You are building a Spark ML pipeline to predict customer churn. One categorical feature, 'zip_code', has approximately 12,000 distinct values. Your teammate proposes applying StringIndexer followed by OneHotEncoder to this column, as is done for the other low-cardinality categorical features. What is the primary concern with applying one-hot encoding directly to 'zip_code', and what is a more appropriate approach?
Reviewed for accuracy · Report an issueNext question