Created
September 14, 2021 16:22
-
-
Save shayaf84/799b7277f8f66a2894565fb53209e0fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.preprocessing import StandardScaler | |
scaler = StandardScaler() | |
for i in X_train_Before: | |
scaler = StandardScaler() | |
X_train_Before[i] = scaler.fit_transform(X_train_Before[i].values.reshape(-1,1)) | |
X_test[i] = scaler.transform(X_test[i].values.reshape(-1,1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment