niyaa commited on
Commit
9ddf64a
1 Parent(s): 057082e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -58,10 +58,15 @@ if tickerSymbol:
58
  st.header('**Volume Bar Chart**')
59
  st.plotly_chart(fig_volume)
60
 
 
 
61
  tickerDf = pd.DataFrame(tickerDf).reset_index()
62
- singleDf = tickerDf[tickerDf["Date"]==start_date]
 
63
  st.write(singleDf)
64
 
 
 
65
  else:
66
  st.warning("Please enter a valid Stock Ticker Symbol.")
67
 
 
58
  st.header('**Volume Bar Chart**')
59
  st.plotly_chart(fig_volume)
60
 
61
+ date_obj = datetime.date(start_date)
62
+ date_str = date_obj.strftime("%Y-%m-%d")
63
  tickerDf = pd.DataFrame(tickerDf).reset_index()
64
+ singleDf = tickerDf[tickerDf["Date"]==date_str]
65
+ #if singleDf["c"]
66
  st.write(singleDf)
67
 
68
+
69
+
70
  else:
71
  st.warning("Please enter a valid Stock Ticker Symbol.")
72