How to plot multiple lines with error bars

I have a dataframe

df =
f1.  f2.  f3.  f4.  f5.  g
1.    2.  3.   4.   1.   0 
2.    4.  6.   8.   7.   0
1.    2.  3.   6.   1.   1 
5.    4.  6.   8.   7.   1
9.    2.  7.   5.   1.   0 
8.    4.  2.   4.   5.   1

I want to draw a lineplot with error bands, where every row is another sample, hue is dictated by the column g, the values are the numbers and the X-axis are the columns (f1 , f2 , f3 , f4 , f5) Is that possible?



Read more here: https://stackoverflow.com/questions/68228629/how-to-plot-multiple-lines-with-error-bars

Content Attribution

This content was originally published by okuoub at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: