可以使用sklearn框架的LabelEncoder模組,延續剛剛介紹的mushroom資料集為例 from sklearn.preprocessing import LabelEncoder #data.columns dic={'class', ...
確定! 回上一頁