QuestionQ118
VerifiedModel DevelopmentA machine learning engineer wants to build a Spark ML linear regression model to predict a hotel room’s price. They use the Spark DataFrame train_df to train the model.
The Spark DataFrame train_df has the following schema:

The machine learning engineer provides this code block:

Which change, if any, must the machine learning engineer make to complete the task?
Community Discussion