繁体   English   中英

单个箱线图

[英]Individual boxplot

我有以下 dataframe。 我想创建两个箱线图来显示 class 和 EL_base 列的 LCC。

df
    Class  ID   EL_base    LCC   
    PC1    1     0         240    
    PC1    1     1         241
    PC1    1     2         245    
    PC1    2     0         246    
    PC1    2     1         241
    PC1    2     2         243   
    PC1    3     0         246    
    PC1    3     1         241
    PC1    3     2         243   
    PC2    1     0         544
    PC2    1     1         541
    PC2    1     2         545
    PC2    1     3         546
    PC2    2     0         544
    PC2    2     1         541
    PC2    2     2         545
    PC2    2     3         546
    PC2    2     0         544
    PC2    2     1         541
    PC2    2     2         545
    PC2    2     3         546

我试过我的代码

   df.boxplot('LCC',by=['Class','EL_base'])

但是代码只给了我一个组合箱线图,而不是每个 class 的单独 plot。

在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM