Skip to content

Instantly share code, notes, and snippets.

@siddharthganjoo
Created August 30, 2021 09:53
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 siddharthganjoo/5c006b7e7e7a5dfd8142c537f095f5b9 to your computer and use it in GitHub Desktop.
Save siddharthganjoo/5c006b7e7e7a5dfd8142c537f095f5b9 to your computer and use it in GitHub Desktop.
df['result']= df['result'].replace({'circles':0, 'triangles':1, 'squares':2})
df.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment