【发布时间】:2017-06-05 09:49:31
【问题描述】:
有没有一种简单的方法来标记编码而不使用 pandas 的多列?
就像只使用 numpy 和 sklearn 的 preprocessing.LabelEncoder()
【问题讨论】:
-
AFAIK 您需要遍历列并使用
LabelEncoder转换每个string列
标签: python python-3.x numpy machine-learning scikit-learn