8000 MAINT remove unneeded import (#7465) · amueller/scikit-learn@8a7948a · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a7948a

Browse files
themrmaxjnothman
authored andcommitted
MAINT remove unneeded import (scikit-learn#7465)
1 parent 1ea557e commit 8a7948a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/modules/tree.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ supported file type): ``dot -Tpdf iris.dot -o iris.pdf``.
143143
Alternatively, if we have Python module ``pydotplus`` installed, we can generate
144144
a PDF file (or any other supported file type) directly in Python::
145145

146-
>>> from sklearn.externals.six import StringIO # doctest: +SKIP
147146
>>> import pydotplus # doctest: +SKIP
148147
>>> dot_data = tree.export_graphviz(clf, out_file=None) # doctest: +SKIP
149148
>>> graph = pydotplus.graph_from_dot_data(dot_data) # doctest: +SKIP
@@ -155,7 +154,7 @@ using explicit variable and class names if desired. IPython notebooks can also
155154
render these plots inline using the `Image()` function::
156155

157156
>>> from IPython.display import Image # doctest: +SKIP
158-
>>> dot_data = tree.export_graphviz(clf, out_file=None, # doctest: +SKIP
157+
>>> dot_data = tree.export_graphviz(clf, out_file=None, # doctest: +SKIP
159158
feature_names=iris.feature_names, # doctest: +SKIP
160159
class_names=iris.target_names, # doctest: +SKIP
161160
filled=True, rounded=True, # doctest: +SKIP

0 commit comments

Comments
 (0)
0