使用 numpy 数组绘制箱线图

时间:2021-03-22 12:45:11

标签: python numpy boxplot

我有 2 个 numpy 数组 x 和 y,x 包含特征,y 包含标签

x.shape
(1437, 9)
y.shape
(1437,)

我想绘制特征的箱线图来分析特征与我使用的标签相比的分布

ax = sns.boxplot(x=x,y=y,palette="Set3")

但我不断收到错误 ValueError: Buffer has wrong number of dimension (expected 1, got 2)

0 个答案:

没有答案