Skip to content

Instantly share code, notes, and snippets.

@petrosDemetrakopoulos
Created September 18, 2022 00:42
Show Gist options
  • Save petrosDemetrakopoulos/5ad9b1e5b0fa6d7759f9b9398c7c5308 to your computer and use it in GitHub Desktop.
Save petrosDemetrakopoulos/5ad9b1e5b0fa6d7759f9b9398c7c5308 to your computer and use it in GitHub Desktop.
df['coin_toss'] = df['coin_toss'].map({'HEADS': True, 'TAILS': False})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment