📌  相关文章
📜  如何一次在多列中进行标签编码 - Python 代码示例

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

代码示例1
# We can use label encoding on multiple column at once by using method
from sklearn.preprocessing import LabelEncoder
df[cat_c] = df[cat_c].apply(LabelEncoder().fit_transform)