DOC Fix load iris datasets
@@ -130,7 +130,8 @@ Using the Iris dataset, we can construct a tree as follows::
>>> from sklearn.datasets import load_iris
>>> from sklearn import tree
- >>> X, y = load_iris(return_X_y=True)
+ >>> iris = load_iris()
+ >>> X, y = iris.data, iris.target
>>> clf = tree.DecisionTreeClassifier()
>>> clf = clf.fit(X, y)
