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

Solution: Import the 'load_wine' module

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

from sklearn.datasets import load_wine

 

For more information:
Python sklearn load_wine