LabelEncoder用法

from sklearn.preprocessing import LabelEncoder
le = LabelEncoder()
data1['TERMINAL_ID'] = le.fit_transform(data1['TERMINAL_ID'].values)

 

你可能感兴趣的:(机器学习)