Skip to content

Instantly share code, notes, and snippets.

@bharatc9530
Created August 4, 2020 07:54
Show Gist options
  • Save bharatc9530/4f70be0d0e5c8dae8fcdfb91eae730a3 to your computer and use it in GitHub Desktop.
Save bharatc9530/4f70be0d0e5c8dae8fcdfb91eae730a3 to your computer and use it in GitHub Desktop.
df = pd.read_csv('Review.csv').sample(frac=1).reset_index(drop=True)
df['sentiment'] = df['sentiment'].astype('category',inplace = True).cat.codes
df.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment