📅  最后修改于: 2022-03-11 14:46:38.686000             🧑  作者: Mango
palette_colors = {"Rural": "green", "Urban": "blue"}
sns.countplot(data=df, x="x_label", hue="grouping_variable",
palette=palette_colors)