Skip to content

Instantly share code, notes, and snippets.

@SmartDataWithR
Created November 6, 2022 18:50
Show Gist options
  • Save SmartDataWithR/93e3bacaea0749b41a60ef293534bc86 to your computer and use it in GitHub Desktop.
Save SmartDataWithR/93e3bacaea0749b41a60ef293534bc86 to your computer and use it in GitHub Desktop.
SentimentArticle: List of sentences and polarities
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