plot errorbar with matplotlib based on multiindex pandas dataframe
问题 I have the following dataframe in pandas: >>>name Hour trt_level stress date value 0 D43 9 H control 2019-06-07 0.4561 1 D43 10 H control 2019-06-07 0.3216 2 D42 8 M stress 2019-06-07 0.2143 3 D42 9 M stress 2019-06-07 0.1342 4 D21 8 L stress 2019-06-07 0.3214 ... I want to create line chart with error-bar,with mse/std, something that will look like this: from : https://matplotlib.org/1.2.1/examples/pylab_examples/errorbar_demo.htmlbut in my case: the X-axis should be hour, the y axis the