XPMaster commited on
Commit
0338839
1 Parent(s): 4b89b9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
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')