Skip to content

Instantly share code, notes, and snippets.

@vanbrands
Last active July 24, 2020 20:15
Show Gist options
  • Save vanbrands/316febdf87827645f0f19597f564100e to your computer and use it in GitHub Desktop.
Save vanbrands/316febdf87827645f0f19597f564100e to your computer and use it in GitHub Desktop.
import pandas as pd
dummies = pd.get_dummies(df, columns=['categorical_colum1', 'categorical_colum2'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment