Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Last active March 16, 2020 11:12
Show Gist options
  • Save aniruddha27/2811016c88a2844c610cb2a925562777 to your computer and use it in GitHub Desktop.
Save aniruddha27/2811016c88a2844c610cb2a925562777 to your computer and use it in GitHub Desktop.
# One-Hot encoding
train = pd.get_dummies(train,drop_first=True)
train.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment