When I tried to load from sklearn.impute import KNNImputer
on Jupyter Notebook, it gave me the following error.
ImportError: cannot import name 'KNNImputer' from 'sklearn.impute' (C:\Users\aura-\Anaconda3\lib\site-packages\sklearn\impute_init_.py)
I have updated sklearn to the newest version.
(base) C:\Users\aura->pip install -U scikit-learn
Requirement already up-to-date: scikit-learn in c:\users\aura-\anaconda3\lib\site-packages (0.23.2)
But when I checked on Jupyter Notebook again import sklearn;print(sklearn.__version__)
, it is still showing 0.21.3
Why the update is not reflected on Jupyter Notebook?