Survey banner
The Dataiku Community is moving to a new home! Some short term disruption starting next week: LEARN MORE

ModuleNotFoundError: No module named 'fancyimpute' error in Jupyter Notebook

Level 1
ModuleNotFoundError: No module named 'fancyimpute' error in Jupyter Notebook

Hey all,

I'm messing around with ways to impute data. One of which is by using KNN to impute the data. Unfortunately, 

from sklearn.impute import KNNImputer doesn't work because it's only available on a newer version of sklearn. Therefore, I'm truing to use fancyimpute.  I created a coding environment and installed fancyimpute (see attahed image, which shows it's installed)  and assigned the coding environment to my project.

However, when I run 


from fancyimpute import KNN


I get ModuleNotFoundError: No module named 'fancyimpute' error. 

Any ideas on how to fix this issue? I'm not 100% positive on the Dataiku edition I'm using. I do know my company pays for us to use it. 

0 Kudos
1 Reply

Hi @bdub 

If you have a notebook running before installing this package, please try to stop kernel (or kill session) and start the notebook again. You can also use the "Force reload" option. Also, are you running this notebook in a container or locally?

Additionally, please provide update log from the code env so we can review it.