I\'ve created a function in python as follows:
def confidence_ints(df, color): time_series_df = pd.DataFrame(df) smooth_path = time_series_df.rolling(20