Skip to content

Instantly share code, notes, and snippets.

@parulnith
Created September 16, 2021 01:08
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 parulnith/101859eb7543772f5e32d9f36507728b to your computer and use it in GitHub Desktop.
Save parulnith/101859eb7543772f5e32d9f36507728b to your computer and use it in GitHub Desktop.
labels_dict = {0:'sadness', 1:'joy', 2:'love', 3:'anger', 4:'fear', 5:'surprise'}
train['description'] = train['label'].map(labels_dict )
train.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment