gpt4 book ai didi

python - seaborn.boxplot 和宽格式数据框

转载 作者:太空狗 更新时间:2023-10-30 02:08:29 25 4
gpt4 key购买 nike

我有一个像这样的 DataFrame:

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 轴上获取测量值,但它没有工作。

image

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

最佳答案

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

关于python - seaborn.boxplot 和宽格式数据框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43114976/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com