【问题标题】:seaborn.boxplot and dataframeseaborn.boxplot 和数据框
【发布时间】:2017-08-24 04:59:45
【问题描述】:

我有一个这样的dataFrame

我一个接一个地尝试了这两个指令:

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)

我想在 x 轴上获取 mean_qscore_templatemean_qscore_complementmean_qscore_2d,在 y 轴上进行测量,但它不起作用。

在文档中,他们给出了一个带有提示的示例,但我的 dataFrame 的组织方式不同。

【问题讨论】:

  • 请提供不适合您的示例代码

标签: python pandas dataframe seaborn


【解决方案1】:

sns.boxplot(data = dataFrame) 将为数据框的每个数字列制作箱线图。

【讨论】:

    猜你喜欢
    • 2022-12-17
    • 2016-05-09
    • 1970-01-01
    • 1970-01-01
    • 2018-10-10
    • 2018-08-31
    • 2013-09-26
    • 1970-01-01
    • 2021-02-17
    相关资源
    最近更新 更多