error while trying to import the imputer module

Viewed 79

I'm getting this error while trying to import the imputer module

from sklearn.preprocessing import Imputer

Error:

ImportError                               Traceback (most recent call last)
<ipython-input-10-40d42fb5b303> in <module>
      1 # Import the Imputer module
----> 2 from sklearn.preprocessing import Imputer
      3 from sklearn.svm import SVC
      4 
      5 # Setup the Imputation transformer: imp

ImportError: cannot import name 'Imputer' from 'sklearn.preprocessing' (C:\Users\MOSTAFA\anaconda3\lib\site-packages\sklearn\preprocessing\__init__.py)
1 Answers
Related