I have a silly question. I'm working on Pyhton using the Intellij IDE. I'm trying to import the below:
from sklearn.preprocessing import Imputer
However, I receive the following error:
Traceback (most recent call last): from sklearn.preprocessing import Imputer
Can you please help with this?
Solution is to use the latest version of scikit-learn library. Install it by using the following command (sometimes sudo is required before pip ):
pip (or, pip3) install scikit-learn==0.19.1
the = symbol must be replaced by ==
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.