Some of you might be getting the following error while working on the End-to-End project in Machine Learning:
Cannot import name Imputer
You would be getting this error on the following code:
from sklearn.preprocessing import Imputer
Please note that the class has been deprecated, you would not be able to use it anymore. Please use the following code instead:
from sklearn.impute import SimpleImputer
imputer = SimpleImputer(strategy=‘median’)