Circhastic commited on
Commit
1d3ccd1
·
1 Parent(s): 1d218d2

Version 1 hotfix #19 for merge

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -191,11 +191,9 @@ def merge_forecast_data(actual, predicted, future):
191
  future = future.rename_axis('Date')
192
  future.rename(columns={future.columns[0]: "Future Forecasted Sales"}, inplace=True)
193
 
194
- # merged_dataframe = pd.merge_ordered(actual, predicted, on='Date', suffixes=('_Actual', '_Predicted'))
195
- # merged_dataframe = pd.merge_ordered(merged_dataframe, future, on='Date')
196
  merged_dataframe = pd.concat([actual, predicted, future], axis=1)
197
  merged_dataframe = merged_dataframe.reset_index()
198
- # merged_dataframe = merged_dataframe.set_index('Date')
199
  return merged_dataframe
200
 
201
  @st.cache_data
 
191
  future = future.rename_axis('Date')
192
  future.rename(columns={future.columns[0]: "Future Forecasted Sales"}, inplace=True)
193
 
 
 
194
  merged_dataframe = pd.concat([actual, predicted, future], axis=1)
195
  merged_dataframe = merged_dataframe.reset_index()
196
+ merged_dataframe.rename(columns={merged_dataframe[0]: "Date"}, inplace=True)
197
  return merged_dataframe
198
 
199
  @st.cache_data