📅  最后修改于: 2022-03-11 14:45:26.123000             🧑  作者: Mango
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)