需求:将每一列进行归一化,并用归一化后的结果替换原来的值
x是原来的dataframe
columns = x.columns.tolist()
x = x.copy()
for c in columns:
max = x[c].max()
min = x[c].min()
x[c]
需求:将每一列进行归一化,并用归一化后的结果替换原来的值
x是原来的dataframe
columns = x.columns.tolist()
x = x.copy()
for c in columns:
max = x[c].max()
min = x[c].min()
x[c]