def df_min_max(df, v_min, v_max):
df_min_max = (df - df.min()) / (df.max() - df.min())
df_scaled = df_min_max * (v_max - v_min) + v_min
return df_scaled
for i in value_to_scaler:
df[i] = df_min_max(df[i],0,1)
value_to_scaler是需要归一化的列名列表
['a','b','c']