📅  最后修改于: 2022-03-11 14:56:05.997000             🧑  作者: Mango
imr = Imputer(missing_values='NaN', strategy='median', axis=0)
imr = imr.fit(data[['age']])
data['age'] = imr.transform(data[['age']]).ravel()