Last active
December 25, 2017 10:43
-
-
Save sagarhowal/d64c183e9f6d830a7c023a45cf1e8a41 to your computer and use it in GitHub Desktop.
Encoding Categorical Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Encoding Categorical Data | |
from sklearn.preprocessing import LabelEncoder | |
labelencoder = LabelEncoder() | |
y = labelencoder.fit_transform(y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment