ImportError: cannnot import name 'Imputer' from 'sklearn.preprocessing'
from sklearn.preprocessing import Imputer
was deprecated with scikit-learn v0.20.4
and removed as of v0.22.2
.
from sklearn.impute import SimpleImputer
imputer = SimpleImputer(missing_values=np.nan, strategy='mean')