Skip to content

Instantly share code, notes, and snippets.

@AyishaR
Created March 27, 2021 10:22
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/e583ff87e5bedaebf22ce5c9c3369716 to your computer and use it in GitHub Desktop.
Save AyishaR/e583ff87e5bedaebf22ce5c9c3369716 to your computer and use it in GitHub Desktop.
numeric_columns.remove('consume')
ss = StandardScaler()
train_df[numeric_columns] = ss.fit_transform(train_df[numeric_columns])
val_df[numeric_columns] = ss.transform(val_df[numeric_columns])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment