“onehotencoder = OneHotEncoder(categorical_features = [1]) X = onehotencoder.fit_transform(X).toarray() X = X[:, 1:]” Code Answer

You may not remember next time either, so install Grepper.


onehotencoder = OneHotEncoder(categorical_features = [1]) X = onehotencoder.fit_transform(X).toarray() X = X[:, 1:]
python by Light Lynx on Apr 23 2020 Donate


Python queries related to “onehotencoder = OneHotEncoder(categorical_features = [1]) X = onehotencoder.fit_transform(X).toarray() X = X[:, 1:]”



Learn how Grepper helps you improve as a Developer!




INSTALL GREPPER FOR CHROME



All Python Answers