1import pandas as pd
2from sklearn import preprocessing
3
4x = df.values #returns a numpy array
5min_max_scaler = preprocessing.MinMaxScaler()
6x_scaled = min_max_scaler.fit_transform(x)
7df = pd.DataFrame(x_scaled)
1import pandas as pd
2from sklearn import preprocessing
3
4x = df.values #returns a numpy array
5min_max_scaler = preprocessing.MinMaxScaler()
6x_scaled = min_max_scaler.fit_transform(x)
7df = pd.DataFrame(x_scaled)
8