seaborn.boxplot和数据框 [英] seaborn.boxplot and dataframe
本文介绍了seaborn.boxplot和数据框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个像这样的 dataFrame
:
我一次又一次地尝试了这两个指令:
I tried these two instructions one after another:
sns.boxplot([dataFrame.mean_qscore_template,dataFrame.mean_qscore_complement,dataFrame.mean_qscore_2d])
sns.boxplot(x = "mean_qscore_template", y= "mean_qscore_complement", hue = "mean_qscore_2d" data = tips)
我想获得 mean_qscore_template
, mean_qscore_complement
和 mean_qscore_2d
在x轴上为y轴,但
I want to get mean_qscore_template
, mean_qscore_complement
and mean_qscore_2d
on the x-axis with the measure on y-axis but it doesn't work.
在文档中,他们给出了带有提示的示例,但我的 dataFrame
并非以相同的方式组织。
In the documentation they give an example with tips but my dataFrame
is not organized f the same way.
推荐答案
sns.boxplot(data = dataFrame)
将对你的 数据框。
这篇关于seaborn.boxplot和数据框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文