Pytdotplus is not executing

#Visualizing The data
#Using graph viz
import pydotplus
from sklearn.externals.six import StringIO
from IPython.display import Image
from sklearn.tree import export_graphviz

dot_data=StringIO()
export_graphviz(sk_tree, out_file=dot_data,filled =True, rounded=True)
graph=pydotplus.graph_from_dot_data(dot_data.getvalue())
Image(graph.create_png())

Can u please explain StringIO class .
Also I am getting an ERROR

InvocationException: GraphViz’s executables not found

Hey @chiragwxN, that’s bcz you need to install graphviz library first.
Use the following command to install it.

pip install graphviz

Hope this cleared your doubt. :blush:
Plz mark the doubt as resolved in my doubts. section.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.