from sklearn.datasets import load_digits d = load_digits(10) print(d.data) print(d.target) print(d.data.shape)