Shrikrishna commited on
Commit
03e2dd8
·
1 Parent(s): 63d4583

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -17,10 +17,11 @@ st.title("Stock Market Trend Predictor")
17
  use_input = st.text_input('Enter stock Ticker', stock_ticker)
18
  if st.button('Analyze'):
19
  df = pdr.get_data_yahoo(use_input, start)
 
20
 
21
  #describing data
22
  st.subheader("Data from year 2005 to till date:")
23
- st.write(df)
24
 
25
  #maps
26
 
 
17
  use_input = st.text_input('Enter stock Ticker', stock_ticker)
18
  if st.button('Analyze'):
19
  df = pdr.get_data_yahoo(use_input, start)
20
+ sorted_df = df.sort_index(ascending=False)
21
 
22
  #describing data
23
  st.subheader("Data from year 2005 to till date:")
24
+ st.write(sorted_df)
25
 
26
  #maps
27