Fit Transform dataset for Machine Learning
from sklearn.preprocessing import MinMaxScaler scaler = MinMaxScaler(feature_range=(0,1)) a = df.to_numpy() a = scaler.fit_transform(a)
from sklearn.preprocessing import MinMaxScaler scaler = MinMaxScaler(feature_range=(0,1)) a = df.to_numpy() a = scaler.fit_transform(a)