Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sns countplot show only largest

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sns #countplot #show #largest
ADD COMMENT
Topic
Name
8+7 =