Answers for "how to label encode a dataset full of words"

1

label encoding

from sklearn.preprocessing import LabelEncoder

le = LabelEncoder()
companydata.ShelveLoc = le.fit_transform(companydata.ShelveLoc)
Posted by: Guest on September-16-2020

Code answers related to "how to label encode a dataset full of words"

Python Answers by Framework

Browse Popular Code Answers by Language