In our examples, we still have things like ``` digits = datasets.load_digits() X_digits = digits.data y_digits = digits.target ``` (See https://scikit-learn.org/dev/auto_examples/compose/plot_digits_pipe.html#sphx-glr-auto-examples-compose-plot-digits-pipe-py) We can replace this with ``` X_digits, y_digits = datasets.load_digits(return_X_y=True) ``` An easy way is to search for ``.data`` and ``.target`` in the examples and use return_X_y=True when applicable.
In our examples, we still have things like
(See https://scikit-learn.org/dev/auto_examples/compose/plot_digits_pipe.html#sphx-glr-auto-examples-compose-plot-digits-pipe-py)
We can replace this with
An easy way is to search for
.dataand.targetin the examples and use return_X_y=True when applicable.