Created
September 6, 2020 17:26
-
-
Save liannewriting/f3a143bde1a34dc70fc058e23e0f07dd to your computer and use it in GitHub Desktop.
Twitter sentiment analysis python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df_starbucks['predicted_sentiment'] = pd.cut(df_starbucks['textblob_sentiment'], | |
bins=[-2, -0.05, 0.2857, 2], | |
labels=['negative', 'neutral', 'positive'], | |
right=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment