Skip to content

Instantly share code, notes, and snippets.

@FelixChop
Created March 26, 2020 11:00
Show Gist options
  • Save FelixChop/122efc08553ce61a8145cb485abb5cc3 to your computer and use it in GitHub Desktop.
Save FelixChop/122efc08553ce61a8145cb485abb5cc3 to your computer and use it in GitHub Desktop.
from sklearn.preprocessing import StandardScaler, MinMaxScaler
standardise_age = StandardScaler()
rescale_fare = MinMaxScaler()
standardise_age.fit(train[['Age']])
rescale_fare.fit(train[['Fare']])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment