What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-17 21:55:20
OneHotEncoder(categorical_features=
#Encoding the categorical data from sklearn.preprocessing import LabelEncoder labelencoder_X = LabelEncoder() X[:,0] = labelencoder_X.fit_transform(X[:,0]) #we are dummy encoding as the machine learning algorithms will be #confused with the values like ... Add solution