I plotted (using matplotlib) the time series and the bounds of the upper and lower confidence intervals (which I calculated in Stata). I used Pandas to read the output of stata.csv, so the series is of type pandas.core.series.Series.
Matplotlib allows me to display these three episodes in the same plot, but I want to shade between the upper and lower confidence boundaries to create a visual confidence interval. Unfortunately, I am getting an error and the shading does not work. I think this is because the functions I want to populate between are pandas.core.series.Series.
Another post here suggests that passing my_series.value instead of my_series will fix this problem; however, I cannot get this to work. I would really appreciate an example.
python matplotlib pandas
Pythonearner
source share