2020年7月2日 星期四

資料前處理

from sklearn.preprocessing import MinMaxScaler
scaler = MinMaxScaler()
df["population_density"] = scaler.fit_transform(df["population_density"].values.reshape(-1, 1))

沒有留言:

張貼留言