niyaa commited on
Commit
4ae28a7
1 Parent(s): 0759c1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -18,7 +18,7 @@ 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=2)
22
 
23
  # User input for the stock ticker symbol
24
  tickerSymbol = st.sidebar.text_input('Enter Stock Ticker Symbol')
@@ -63,7 +63,8 @@ if tickerSymbol:
63
  tickerDf = pd.DataFrame(tickerDf).reset_index()
64
 
65
  st.write(tickerDf)
66
-
 
67
  #date = datetime.date(start_date)
68
  date_str = start_date.strftime("%Y-%m-%d")
69
  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
+ 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')
 
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)