Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Label enconding code with sklearn

df_ordinal_label=df_cate_ordinal.apply(preprocessing.LabelEncoder().fit_transform)#used sklearn lib
df_ordinal_label.head(5)
Source by colab.research.google.com #
 
PREVIOUS NEXT
Tagged: #Label #enconding #code #sklearn
ADD COMMENT
Topic
Name
2+2 =