Shrikrishna commited on
Commit
dc1da06
1 Parent(s): a359c5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -99,8 +99,10 @@ if st.button('Analyze'):
99
 
100
  #Call the function to plot the final graph
101
  plot_final_graph()
102
-
103
- df_predictions = pd.DataFrame({'Original_Price': y_test, 'Predicted_Price': y_predicted}, columns=['Original_Price', 'Predicted_Price'])
 
 
104
 
105
  st.subheader("Original Stock Pice and Predicted Stock Price:")
106
  st.dataframe(df_predictions,use_container_width=True)
 
99
 
100
  #Call the function to plot the final graph
101
  plot_final_graph()
102
+ df_test = pd.DataFrame(y_test)
103
+ df_predicted = pd.DataFrame(y_predicted)
104
+ df_predictions = pd.concat([df_test, df_predicted], axis=1)
105
+ #df_predictions = pd.DataFrame({'Original_Price': y_test, 'Predicted_Price': y_predicted}, columns=['Original_Price', 'Predicted_Price'])
106
 
107
  st.subheader("Original Stock Pice and Predicted Stock Price:")
108
  st.dataframe(df_predictions,use_container_width=True)