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