I have a dataframe that looks like this:
import pandas as pd
foo = pd.DataFrame({'time':[1,2,3,4], 'value':[2,4,6,8], 'group':['a', 'a', 'b', 'b'],
'top_ci':[3,5,7,9], 'bottom_ci': [1,3,5,7]})
I would like to create a lineplot, so i am using the following code:
ax = sns.lineplot(x="time", y="value", hue="group", data=foo)
ax.figure.savefig('test.png', bbox_inches='tight')
I would like to add a shaded area with the confidence interval, as it is defined from the top_ci and the bottom_ci columns in the foo dataframe.
Any ideas how I could do that ?