📅  最后修改于: 2022-03-11 14:46:58.403000             🧑  作者: Mango
代码示例4
from sklearn import preprocessing
lab_encoder = preprocessing.LabelEncoder()
df['column'] = lab_encoder.fit_transform(df['column'])