Skip to content

Instantly share code, notes, and snippets.

@himlohiya
Created June 30, 2018 12:39
Show Gist options
  • Select an option

  • Save himlohiya/49e19698358ca1b289afd440096a9cd0 to your computer and use it in GitHub Desktop.

Select an option

Save himlohiya/49e19698358ca1b289afd440096a9cd0 to your computer and use it in GitHub Desktop.
f, (ax1, ax2) = plt.subplots(1, 2, figsize=(14, 4))
sp = sns.stripplot(x='news_category', y="sentiment_score",
hue='news_category', data=df, ax=ax1)
bp = sns.boxplot(x='news_category', y="sentiment_score",
hue='news_category', data=df, palette="Set2", ax=ax2)
t = f.suptitle('Visualizing News Sentiment', fontsize=14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment