text_plain_output_1.png
from sklearn import decomposition

import pandas as pd

train_df_final = pd.read_csv('../input/pumpitup-challenge-dataset/train_df_final.csv')
X_test_final = pd.read_csv('../input/pumpitup-challenge-dataset/X_test_final.csv')

X_test_final.shape

sc = ss()
X_train = sc.fit_transform(X_train)
X_valid = sc.transform(X_valid)
X_test = sc.transform(X_test_final)

pca = decomposition.PCA(0.95)

pca.fit(X_train)