Skip to content

Instantly share code, notes, and snippets.

@tommydangerous
Created June 11, 2021 05:34
Show Gist options
  • Save tommydangerous/19d2ceff2c10a709d754a5f59959d193 to your computer and use it in GitHub Desktop.
Save tommydangerous/19d2ceff2c10a709d754a5f59959d193 to your computer and use it in GitHub Desktop.
scale_values.py
from sklearn.preprocessing import StandardScaler
scaler = StandardScaler()
df.loc[:, ['Age']] = scaler.fit_transform(df[['Age']])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment