I was wondering whether it might be possible to include multiple keyword in sns.counplot, similar to how it works in sns.histplot. For example, I have a dataset containing tweets by users about airlines and whether they are positive, negative or neutral. I want to make a countplot of each type of tweet per airline.
If I do sns.countplot(data=airline_tweets, y='airline', hue='airline_sentiment'), I get:
The behaviour I want to get is similar to doing
import seaborn.objects as so
so.Plot(airline_tweets, x='airline', color='airline_sentiment').add(so.Bar(), so.Count(), so.Stack())
I want to be able to get this by doing sns.countplot(data=airline_tweets, y='airline', hue='airline_sentiment', multiple='stack')
Heyy devs of seaborn!
I was wondering whether it might be possible to include
multiple
keyword insns.counplot
, similar to how it works insns.histplot
. For example, I have a dataset containing tweets by users about airlines and whether they are positive, negative or neutral. I want to make a countplot of each type of tweet per airline.If I do
sns.countplot(data=airline_tweets, y='airline', hue='airline_sentiment')
, I get:The behaviour I want to get is similar to doing
I want to be able to get this by doing
sns.countplot(data=airline_tweets, y='airline', hue='airline_sentiment', multiple='stack')
Thank you!