Skip to content

Instantly share code, notes, and snippets.

@AyishaR
Created February 13, 2021 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AyishaR/5bf60deb5c5158850c273b3da9c49712 to your computer and use it in GitHub Desktop.
Save AyishaR/5bf60deb5c5158850c273b3da9c49712 to your computer and use it in GitHub Desktop.
ss = StandardScaler()
train_df[numeric_columns] = ss.fit_transform(train_df[numeric_columns])
val_df[numeric_columns] = ss.transform(val_df[numeric_columns])
test_df[numeric_columns] = ss.transform(test_df[numeric_columns])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment