Spaces:
Runtime error
Runtime error
Commit
·
34babee
1
Parent(s):
c692dd0
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,8 +115,8 @@ if uploaded_file is not None:
|
|
| 115 |
# showlegend=True
|
| 116 |
# ),
|
| 117 |
go.Scatter(
|
| 118 |
-
x=forecasts_df['ds'].values
|
| 119 |
-
y=forecasts_df['hi_ci_10'].values+forecasts_df['low_ci_10']
|
| 120 |
fill='toself',
|
| 121 |
fillcolor='#B6E880',
|
| 122 |
line=dict(color='#00CC96'),
|
|
|
|
| 115 |
# showlegend=True
|
| 116 |
# ),
|
| 117 |
go.Scatter(
|
| 118 |
+
x=np.concatenate([forecasts_df['ds'].values,forecasts_df['ds'].values[::-1]]), # x, then x reversed
|
| 119 |
+
y=pd.concat([forecasts_df['hi_ci_10'].values+forecasts_df['low_ci_10'][::-1]]), # upper, then lower reversed
|
| 120 |
fill='toself',
|
| 121 |
fillcolor='#B6E880',
|
| 122 |
line=dict(color='#00CC96'),
|