1.a.mean() 默认要求每列数据的平均值;如果添加参数a.mean(1)要求每行平均值;
均值归一化
df1 = df1.values#axis = 0:压缩行,每列求均值mean = np.mean(df1,axis=#均值归一化df1) = df1-mean
1.a.mean() 默认要求每列数据的平均值;如果添加参数a.mean(1)要求每行平均值;
均值归一化
df1 = df1.values#axis = 0:压缩行,每列求均值mean = np.mean(df1,axis=#均值归一化df1) = df1-mean