Circhastic commited on
Commit
64ab91a
1 Parent(s): cc724c9

Version 1 hotfix #5

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -187,7 +187,7 @@ def merge_forecast_data(historical, test, future):
187
  test.rename(columns={test.columns[0]: "Predicted Sales"}, inplace=True)
188
  future = future.to_frame()
189
  future.rename(columns={future.columns[0]: "Future Forecasted Sales"}, inplace=True)
190
- merged_dataframe = pd.merge(historical, test, future, on='Date', how='outer')
191
  return merged_dataframe
192
 
193
  # TAPAS Model
 
187
  test.rename(columns={test.columns[0]: "Predicted Sales"}, inplace=True)
188
  future = future.to_frame()
189
  future.rename(columns={future.columns[0]: "Future Forecasted Sales"}, inplace=True)
190
+ merged_dataframe = pd.merge_ordered(historical, pd.merge_ordered(test, future))
191
  return merged_dataframe
192
 
193
  # TAPAS Model