sklearn包中缺失Imputer函数

, housing是一个数据集,ocean_proximity是其中一个特征(列)


from sklearn.preprocessing import Imputer as SimpleImputer 
imputer = SimpleImputer(strategy = 'median')

housing_num = housing.drop('ocean_proximity', axis =1)

imputer.fit(

你可能感兴趣的:(python)