Skip to content

Instantly share code, notes, and snippets.

@jeetaf
Created June 28, 2021 12:26
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 jeetaf/a92bad9af2b39d8eb12182c62e696d63 to your computer and use it in GitHub Desktop.
Save jeetaf/a92bad9af2b39d8eb12182c62e696d63 to your computer and use it in GitHub Desktop.
origin = dataset.pop('Origin')
dataset['USA'] = (origin == 1)*1.0
dataset['Europe'] = (origin == 2)*1.0
dataset['Japan'] = (origin == 3)*1.0
dataset.tail()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment