【发布时间】:2018-10-02 04:11:02
【问题描述】:
考虑以下数据框,这就是它在 jupyter notebook 上的样子:
in(1): df
out(1):
months 0 1 3 6 12
name
------------------------------------
janedoe 1.0 3.0 3.0 2.0 1.0
johndoe 3.0 2.0 3.0 1.0 1.0
tfbundy 1.0 3.0 3.0 3.0 3.0
someone 1.0 2.0 3.0 4.0 4.0
another 1.0 2.0 2.0 3.0 2.0
... ... ... ... ... ...
等 700 行。我希望创建一个带有 stdev 误差条的条形图,其中 y 轴上是每个月列的平均得分(1.0、3.0 等),x 轴上是月份(0、1、3、6、12 )。我该怎么做?
谢谢。
【问题讨论】:
标签: python pandas matplotlib plot