epsilon-machine / missingpy

Missing Data Imputation for Python
GNU General Public License v3.0
236 stars 63 forks source link

Module Error #17

Open hsmith876 opened 4 years ago

hsmith876 commented 4 years ago

I keep encountering the following error:

ModuleNotFoundError: No module named 'missingpy'

when I run: from missingpy import KNNImputer imputer = KNNImputer()

I installed using the following: !pip install missingpy==0.2.0

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. Requirement already satisfied: missingpy==0.2.0 in /usr/local/lib/python2.7/site-packages (0.2.0)

janithwanni commented 4 years ago

Have you tried the above code on a python version above 2.7? also by looking at your example. if you are using a jupyter notebook. have you tried restarting the notebook. The import works on my version of Python 3.7