Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created February 3, 2021 16:45
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 amankharwal/1bccacce06bab88520be9865b57d35c7 to your computer and use it in GitHub Desktop.
Save amankharwal/1bccacce06bab88520be9865b57d35c7 to your computer and use it in GitHub Desktop.
# scaling and normalizing the dataset
scaler = StandardScaler()
x_scaled = scaler.fit_transform(data)
from sklearn.preprocessing import normalize
x_normal = normalize(x_scaled)
x_normal = pd.DataFrame(x_normal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment