How to Solve NameError: name 'SimpleImputer' is not defined -- sklearn

Solution: Import the 'SimpleImputer' module

To Solve the error, add the following line to the top of your code.

from sklearn.impute import SimpleImputer

 

For more information:
Python sklearn SimpleImputer