application_vnd.jupyter.stderr_output_1.png
import pandas as pd

mnist_train = pd.read_csv('../input/mnist-in-csv/mnist_train.csv')
mnist_test = pd.read_csv('../input/mnist-in-csv/mnist_test.csv')

X_train = mnist_train.iloc[:, 1:785]
y_train = mnist_train.iloc[:, 0]
lda = LDA(n_components=9)
X_train_r2 = lda.fit(X_train, y_train)

X_train_r2