kaxap commited on
Commit
aa85654
·
1 Parent(s): 6c7702c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -62,6 +62,9 @@ def train_and_forecast(
62
  print(date_range)
63
  new_df = df.reindex(date_range)
64
  new_df = new_df.interpolate(method='spline', order=2)
 
 
 
65
  # trying this hack to fix pandas beginMonth stuff
66
  buffer = io.BytesIO()
67
  new_df.to_csv(buffer, index=False)
 
62
  print(date_range)
63
  new_df = df.reindex(date_range)
64
  new_df = new_df.interpolate(method='spline', order=2)
65
+ new_df.reset_index(inplace=True)
66
+ new_df.columns = ['ds', 'y']
67
+
68
  # trying this hack to fix pandas beginMonth stuff
69
  buffer = io.BytesIO()
70
  new_df.to_csv(buffer, index=False)