Skip to content

Instantly share code, notes, and snippets.

@HeenaR17
Created April 3, 2021 15:16
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 HeenaR17/9d30b4b29a005a9f9ed141055d23b66f to your computer and use it in GitHub Desktop.
Save HeenaR17/9d30b4b29a005a9f9ed141055d23b66f to your computer and use it in GitHub Desktop.
## Standardisation
from sklearn.preprocessing import StandardScaler
sc=StandardScaler()
scaled_df=sc.fit_transform(df1)
scaled_df
pd.DataFrame(scaled_df)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment