How to Solve NameError: name 'OrdinalEncoder' is not defined -- sklearn
Solution: Import the 'OrdinalEncoder' module
To Solve the error, add the following line to the top of your code.
from sklearn.preprocessing import OrdinalEncoder
For more information:
Python OrdinalEncoder sklearn