Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to apply labelencoder on multiple columns at once

df.apply(LabelEncoder().fit_transform)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #apply #labelencoder #multiple #columns
ADD COMMENT
Topic
Name
6+2 =