niyaa commited on
Commit
9ca4b78
1 Parent(s): 4ae28a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,7 +18,8 @@ st.write('---')
18
  # Sidebar
19
  st.sidebar.subheader('Query parameters')
20
  start_date = st.sidebar.date_input("Start date", datetime.date(2019, 1, 1))
21
- end_date = start_date + datetime.timedelta(days=4)
 
22
 
23
  # User input for the stock ticker symbol
24
  tickerSymbol = st.sidebar.text_input('Enter Stock Ticker Symbol')
@@ -62,9 +63,8 @@ if tickerSymbol:
62
  st.write(start_date)
63
  tickerDf = pd.DataFrame(tickerDf).reset_index()
64
 
65
- st.write(tickerDf)
66
 
67
- start_date = start_date + datetime.timedelta(days=1)
68
  #date = datetime.date(start_date)
69
  date_str = start_date.strftime("%Y-%m-%d")
70
  st.write(date_str)
 
18
  # Sidebar
19
  st.sidebar.subheader('Query parameters')
20
  start_date = st.sidebar.date_input("Start date", datetime.date(2019, 1, 1))
21
+ start_date = start_date - datetime.timedelta(days=14)
22
+ end_date = start_date + datetime.timedelta(days=14)
23
 
24
  # User input for the stock ticker symbol
25
  tickerSymbol = st.sidebar.text_input('Enter Stock Ticker Symbol')
 
63
  st.write(start_date)
64
  tickerDf = pd.DataFrame(tickerDf).reset_index()
65
 
66
+ # st.write(tickerDf)
67
 
 
68
  #date = datetime.date(start_date)
69
  date_str = start_date.strftime("%Y-%m-%d")
70
  st.write(date_str)