Created
November 6, 2022 18:50
-
-
Save SmartDataWithR/93e3bacaea0749b41a60ef293534bc86 to your computer and use it in GitHub Desktop.
SentimentArticle: List of sentences and polarities
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
president = 'Trump' | |
df_filt = df.loc[df['source']==president, ['text', 'stars']].copy() | |
list(zip(df_filt['text'], df_filt['stars'])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment