Created
June 30, 2018 12:39
-
-
Save himlohiya/49e19698358ca1b289afd440096a9cd0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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