day1:非数值型缺失值填充
zephyrzoom opened this issue · 2 comments
zephyrzoom commented
非数值型缺失值怎么填充呀?用Imputer时报错could not convert string to float
weizy2018 commented
非数值型缺失值怎么填充呀?用Imputer时报错
could not convert string to float
新版本的sklearn的Imputer改了,使用
from sklearn.impute import SimpleImputer
impter = SimpleImputer(missing_values=np.nan, strategy='mean')
yyong119 commented
非数值型缺失值怎么填充呀?用Imputer时报错
could not convert string to float
新版本的sklearn的Imputer改了,使用
from sklearn.impute import SimpleImputer
impter = SimpleImputer(missing_values=np.nan, strategy='mean')
感谢提醒,已更新