Is it possible to show only the top/bottom n groups in asns.countplot()?
sns.countplot()
Using an example from the seaborn website,
sns.countplot
import seaborn as sns titanic = sns.load_dataset("titanic") sns.countplot(y="deck", hue="class", data=titanic, palette="Greens_d", order=titanic.deck.value_counts().iloc[:3].index)