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

Solution: Import the 'preprocessing' module

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

from sklearn import preprocessing

 

For more information:
Python preprocessing sklearn