LeetQuiz Logo
Privacy Policy•contact@leetquiz.com
© 2025 LeetQuiz All rights reserved.
Databricks Certified Machine Learning - Associate

Databricks Certified Machine Learning - Associate

Get started today

Ultimate access to all questions.


A data scientist is working on one-hot encoding categorical attributes in a PySpark DataFrame named 'features_df' using Spark ML. The string column names are stored in the variable 'input_columns'. The provided code snippet is causing an error. What change is necessary to correctly perform one-hot encoding?

Real Exam



Powered ByGPT-5