LaberEncoder一些报错

NaN是float类型,一个字段dtype是object,但是里面杂糅了多个类型,NaN是float,其它是str,LaberEncoder不能用于一个字段含多个类型,我这里把字段astype为str,LabelEncoder可以fit

留言

熱門文章