使用熊猫绘制箱线图

时间:2020-09-17 15:46:52

标签: python pandas data-science seaborn

我正在尝试使用熊猫绘制箱形图。 使用seaborn的相同代码如下:

sns.boxplot(y ='Salary',data = eda)

boxplot using seaborn

这是我在使用熊猫时使用的代码:

boxplot = eda.boxplot(column = ['Salary'])

boxplot using pandas

有什么方法可以像我使用seaborn一样使用熊猫获得相同的箱形图吗?

编辑:使用熊猫时,我需要在y轴上的“工资”列 谢谢!

0 个答案:

没有答案