from sklearn.tree import export_graphviz
import pydot
import graphviz
tree=rf.estimators_[5]
export_graphviz(tree,out_file='tree.dot',feature_names=col_names,rounded=1,precision=1)
(graph, ) = pydot.graph_from_dot_file('tree.dot')
graph.write_png('tree.png')