如何在python中按单个类别绘制类别

时间:2019-11-08 09:59:45

标签: python seaborn

我有一个类别列,其中有5个类别,即[A,b,c,d,e] 我正在尝试与另一列(即x)构建图 我需要为每个类别构建一个单独的图 例如: A to X, B to x

{
g = sns.catplot(x="annual_inc", y="loan_status", hue="int_rate", col='purpose', data=loan, kind="bar", height=8, aspect=2);
}

我希望输出enter image description here

0 个答案:

没有答案
相关问题