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 |
import numpy as np
|
@@ -83,15 +82,8 @@ def asubmit(aparam):
|
|
83 |
# lin.score(adf3[['Date']], adf3['Celsius'])
|
84 |
# st.write(lin.predict(np.array([[20230223]])))
|
85 |
# st.write(lin.predict(np.array([['Date']], dtype='int32')))
|
86 |
-
st.write(lin.predict(adf3[['Date']]))
|
87 |
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
)
|
92 |
-
aoption = acontainer1.selectbox(
|
93 |
-
'Which station?',
|
94 |
-
adf['atitle']
|
95 |
-
)
|
96 |
-
if acontainer2.button("Submit") == True:
|
97 |
-
asubmit(aparam={"aselected":aoption,"acontainer":acontainer3,"adataframe":adf,"acolumntitles":['Date','Celsius'],})
|
|
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
import numpy as np
|
|
|
82 |
# lin.score(adf3[['Date']], adf3['Celsius'])
|
83 |
# st.write(lin.predict(np.array([[20230223]])))
|
84 |
# st.write(lin.predict(np.array([['Date']], dtype='int32')))
|
85 |
+
# st.write(lin.predict(adf3[['Date']]))
|
86 |
|
87 |
+
atrendproject = [20230223,]
|
88 |
+
st.write(lin.predict(np.array([atrendproject])))
|
89 |
+
# st.dataframe(atrendproject.merge(lin.predict(np.array([atrendproject]))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|