Update app.py
Browse files
app.py
CHANGED
@@ -84,3 +84,10 @@ if st.button('Run Grid Search'):
|
|
84 |
'seasonal_period': best_params[3]
|
85 |
}
|
86 |
st.write(f"Best Parameters: {best_params} with AIC: {best_aic}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
'seasonal_period': best_params[3]
|
85 |
}
|
86 |
st.write(f"Best Parameters: {best_params} with AIC: {best_aic}")
|
87 |
+
|
88 |
+
|
89 |
+
# Export to Excel button
|
90 |
+
if st.button('Export to Excel'):
|
91 |
+
df_to_export = forecast_df
|
92 |
+
excel_data = to_excel(df_to_export)
|
93 |
+
st.download_button(label='📥 Download Excel', data=excel_data, file_name='forecast.xlsx', mime='application/vnd.ms-excel')
|