QuestionQ127
VerifiedModel DevelopmentA data scientist wants to use Spark ML to one-hot encode the categorical features in their PySpark DataFrame, features_df. The names of the string columns are stored in the input_columns variable.
They developed the following code block to perform this task:

The code block returns an error. Which adjustment does the data scientist need to make to complete this task?
Community Discussion