a10 commited on
Commit
fa51aa8
·
1 Parent(s): 7292605

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,4 +1,6 @@
 
1
  import streamlit as st
 
2
 
3
  astations = [
4
  ["hongkongobservatory","HKO",22.3022566,114.1722662,"Hong Kong Observatory"],
@@ -8,7 +10,11 @@ astations = [
8
  acontainer1 = st.empty()
9
  acontainer2 = st.empty()
10
 
 
 
 
 
11
  aoption = acontainer1.selectbox(
12
  'Which station?',
13
- astations[][4])
14
- acontainer2.write(aoption)
 
1
+
2
  import streamlit as st
3
+ import pandas as pd
4
 
5
  astations = [
6
  ["hongkongobservatory","HKO",22.3022566,114.1722662,"Hong Kong Observatory"],
 
10
  acontainer1 = st.empty()
11
  acontainer2 = st.empty()
12
 
13
+ adf = pd.DataFrame(
14
+ astations,
15
+ columns=['akey','astationcode','alatitude','alongitude','atitle',]
16
+ )
17
  aoption = acontainer1.selectbox(
18
  'Which station?',
19
+ adf)
20
+ acontainer2.write(aoption)