Is it possible to show only the top / bottom n groups in sns.countplot() ?
Using an example from a marine site,
sns.countplot(y="deck", hue="class", data=titanic, palette="Greens_d");

Is there a simple (or even relatively simple) way to limit this graph to only three decks (groups) instead of displaying all 7 or is it something that would be better done using sns.bargraph or just plain matplotlib?
source share