Skip to content

Instantly share code, notes, and snippets.

@sid321axn
Created August 7, 2020 01:54
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 sid321axn/06a9bd5c3e1ba64ec195f79057bed0c0 to your computer and use it in GitHub Desktop.
Save sid321axn/06a9bd5c3e1ba64ec195f79057bed0c0 to your computer and use it in GitHub Desktop.
df.drop(['Unnamed: 0'],axis=1, inplace=True)
df["label"] = df.label.apply(lambda x:0 if x=='TRUE' else 1)
df.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment