📜  标签编码器python代码示例

📅  最后修改于: 2022-03-11 14:45:21.975000             🧑  作者: Mango

代码示例2
from sklearn.preprocessing import LabelEncoder

le = LabelEncoder()
companydata.ShelveLoc = le.fit_transform(companydata.ShelveLoc)