Skip to content

Instantly share code, notes, and snippets.

@vineethm1627
Last active November 15, 2020 11:01
Show Gist options
  • Save vineethm1627/6e252bb607bdc62bacc95ad0ad4429fb to your computer and use it in GitHub Desktop.
Save vineethm1627/6e252bb607bdc62bacc95ad0ad4429fb to your computer and use it in GitHub Desktop.
# lets scale the values.
from sklearn.preprocessing import MinMaxScaler
scaler = MinMaxScaler()
data[numerical_cols] = scaler.fit_transform(data[numerical_cols])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment