Spaces:
Running
Running
Circhastic
commited on
Commit
·
22db911
1
Parent(s):
1d3ccd1
Version 1 hotfix #20 for merge
Browse files
app.py
CHANGED
@@ -193,7 +193,6 @@ def merge_forecast_data(actual, predicted, future):
|
|
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
|
@@ -375,7 +374,7 @@ if (st.session_state.uploaded):
|
|
375 |
# date = get_combined_date(df['Sales'], fitted_series, future_fitted_series)
|
376 |
# col[0].line_chart(x=date, y=[df['Sales'], fitted_series], color='blue', key='actual')
|
377 |
merged_data = merge_forecast_data(df['Sales'], fitted_series, future_fitted_series)
|
378 |
-
col[0].line_chart(merged_data, x="
|
379 |
col[0].write(f"MAPE score: {acc['mape']} (lower is better)")
|
380 |
with col[1]:
|
381 |
col[1].subheader(f"Forecasted sales in the next {period} days")
|
|
|
193 |
|
194 |
merged_dataframe = pd.concat([actual, predicted, future], axis=1)
|
195 |
merged_dataframe = merged_dataframe.reset_index()
|
|
|
196 |
return merged_dataframe
|
197 |
|
198 |
@st.cache_data
|
|
|
374 |
# date = get_combined_date(df['Sales'], fitted_series, future_fitted_series)
|
375 |
# col[0].line_chart(x=date, y=[df['Sales'], fitted_series], color='blue', key='actual')
|
376 |
merged_data = merge_forecast_data(df['Sales'], fitted_series, future_fitted_series)
|
377 |
+
col[0].line_chart(merged_data, x="index", y=["Actual Sales", "Predicted Sales", "Future Forecasted Sales"])
|
378 |
col[0].write(f"MAPE score: {acc['mape']} (lower is better)")
|
379 |
with col[1]:
|
380 |
col[1].subheader(f"Forecasted sales in the next {period} days")
|