7 lines
211 B
Python
7 lines
211 B
Python
|
import pandas as pd
|
||
|
model=pd.read_excel("5Preprocessing/model.xls")
|
||
|
def Standard(data):
|
||
|
data=(data-data.mean())/data.std()
|
||
|
return data
|
||
|
S=Standard(model)
|
||
|
print("标准化后的数据为:",'\n',S.head())
|