I have wrote the MNIST digits data that look like:
digits = datasets.load_digits(n_class=6) X = digits.data y = digits.target n_samples, n_features = X.shape