Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created March 3, 2021 07:41
Show Gist options
  • Save amankharwal/8db22bcd2c1ed5ed1c87177adea50a68 to your computer and use it in GitHub Desktop.
Save amankharwal/8db22bcd2c1ed5ed1c87177adea50a68 to your computer and use it in GitHub Desktop.
from sklearn.preprocessing import MinMaxScaler
datatypes = ['int16', 'int32', 'int64', 'float16', 'float32', 'float64']
normarization = data.select_dtypes(include=datatypes)
for col in normarization.columns:
MinMaxScaler(col)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment