Skip to content

Python code snippet – How to apply labelencoder on multiple columns at once?

df.apply(LabelEncoder().fit_transform)
See also  How to define a collection in Java?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.