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

bdub Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 2 ✭✭✭
edited July 16 in Using Dataiku

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.


  • Sergey
    Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 Dataiker

    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.

Setup Info
      Help me…