Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
import streamlit as st
|
3 |
import pandas as pd
|
4 |
|
@@ -10,13 +9,10 @@ astationcolumns = ['akey','astationcode','alatitude','alongitude','atitle',]
|
|
10 |
|
11 |
acontainer1 = st.empty()
|
12 |
acontainer2 = st.empty()
|
13 |
-
acontainer3 = st.
|
14 |
|
15 |
-
#def asubmit(aselected="",adataframe=pd.DataFrame(),adummy=None):
|
16 |
def asubmit(aselected=""):
|
17 |
-
acontainer3.write("
|
18 |
-
# adf2 = aparam[0]["adataframe"]
|
19 |
-
# astationcode = adf2.loc[adf2["atitle"]==aparam[0]["aselected"]]['astationcode']
|
20 |
|
21 |
adf = pd.DataFrame(
|
22 |
astations,
|
@@ -26,4 +22,4 @@ aoption = acontainer1.selectbox(
|
|
26 |
'Which station?',
|
27 |
adf['atitle']
|
28 |
)
|
29 |
-
acontainer2.button("Submit",on_click=asubmit,kwargs=dict(aselected="
|
|
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
|
|
|
9 |
|
10 |
acontainer1 = st.empty()
|
11 |
acontainer2 = st.empty()
|
12 |
+
acontainer3 = st.write("TEST")
|
13 |
|
|
|
14 |
def asubmit(aselected=""):
|
15 |
+
acontainer3.write((" {} ").format(aselected))
|
|
|
|
|
16 |
|
17 |
adf = pd.DataFrame(
|
18 |
astations,
|
|
|
22 |
'Which station?',
|
23 |
adf['atitle']
|
24 |
)
|
25 |
+
acontainer2.button("Submit",on_click=asubmit,kwargs=dict(aselected="TEST2"))
|