kailashsp commited on
Commit
e23e311
β€’
1 Parent(s): acfa935

update: UI enhancement

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -12,12 +12,17 @@ st.set_page_config(
12
  layout="wide",
13
  initial_sidebar_state="expanded",
14
  )
 
 
 
15
  left_co, cent_co,last_co = st.columns(3)
16
  with cent_co:
17
- st.image(image=".streamlit/stock-market.png")
 
 
18
 
19
 
20
- stocks = pd.read_excel("MCAP31122023.xlsx").set_index('Symbol')
21
 
22
  url = "https://ticker.finology.in/company/"
23
 
@@ -28,7 +33,7 @@ def search_stocks(searchterm: str):
28
  if not searchterm:
29
  return []
30
  matching_stocks = stocks[stocks.index.str.contains(searchterm, case=False, na=False)]
31
- return matching_stocks.index.tolist()
32
 
33
 
34
  selected_value = st_searchbox(
 
12
  layout="wide",
13
  initial_sidebar_state="expanded",
14
  )
15
+
16
+ st.markdown("### πŸ“ˆ Stock Picker")
17
+
18
  left_co, cent_co,last_co = st.columns(3)
19
  with cent_co:
20
+ st.image(image=".streamlit/stock-market.png", width=100)
21
+
22
+ st.markdown("---")
23
 
24
 
25
+ stocks = pd.read_excel("MCAP31122023.xlsx").set_index('Company Name')
26
 
27
  url = "https://ticker.finology.in/company/"
28
 
 
33
  if not searchterm:
34
  return []
35
  matching_stocks = stocks[stocks.index.str.contains(searchterm, case=False, na=False)]
36
+ return matching_stocks['Symbol'].tolist()
37
 
38
 
39
  selected_value = st_searchbox(