Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
What is the correct line of code to complete the snippet for imputing missing values using the median strategy in PySpark?
A
No need to add anything
B
imputer_model = imputer.fit(doubles_df)
C
imputer_model = doubles_df.fit()
D
Change the imputer constructor to most_frequent
E
Imputer(strategy=“most_frequent“, inputCols=impute_cols, outputCols=impute_cols)