# Mean Imputation imputer = SimpleImputer() imputer.fit_transform(X) # After Imputation array([[20. ], [30. ], [10. ], [17.5], [10. ]])