kaxap commited on
Commit
8baa270
·
1 Parent(s): 1251295

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,12 +62,12 @@ 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
- print(new_df)
66
  # trying this hack to fix pandas beginMonth stuff
67
  buffer = io.BytesIO()
68
- new_df.to_csv(buffer)
69
  buffer.seek(0)
70
  new_df = pd.read_csv(buffer)
 
71
  gluon_df = PandasDataset(new_df, target=new_df.columns[0], freq=freq)
72
  print(gluon_df)
73
  row_offset = offset_calculation(prediction_length, rolling_windows, len(df))
 
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)
68
  buffer.seek(0)
69
  new_df = pd.read_csv(buffer)
70
+ print(new_df)
71
  gluon_df = PandasDataset(new_df, target=new_df.columns[0], freq=freq)
72
  print(gluon_df)
73
  row_offset = offset_calculation(prediction_length, rolling_windows, len(df))