Circhastic commited on
Commit
84cf28d
·
1 Parent(s): f4fa142
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -237,8 +237,8 @@ if (st.session_state.uploaded):
237
  )
238
 
239
  if (forecast_button):
240
- df_csv = df.to_csv()
241
- df = pd.read_csv(df_csv, index_col = 'Date', parse_dates= True)
242
  df = df.dropna()
243
 
244
  # Create the eXogenous values
 
237
  )
238
 
239
  if (forecast_button):
240
+ data_csv = df.to_csv(index=False, header=True, path_or_buf=None)
241
+ df = pd.read_csv(data_csv, index_col = 'Date', parse_dates= True)
242
  df = df.dropna()
243
 
244
  # Create the eXogenous values