Skip to content

Instantly share code, notes, and snippets.

@gustavoschmoeller
Created January 11, 2021 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gustavoschmoeller/bad73abee0b2e1d8eeb8fd8850c4c4ea to your computer and use it in GitHub Desktop.
Save gustavoschmoeller/bad73abee0b2e1d8eeb8fd8850c4c4ea to your computer and use it in GitHub Desktop.
df_onehot = pd.get_dummies(df)
df_onehot.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment