📜  sns countplot 仅显示最大 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:26.123000             🧑  作者: Mango

代码示例1
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)