Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -68,9 +68,9 @@ def asubmit(aparam):
|
|
68 |
lin.fit(adf3[['Date']].astype('float').astype('int32'), adf3['Celsius'])
|
69 |
|
70 |
atrendproject = [20230223,]
|
71 |
-
st.write(type(pd.DataFrame(lin.predict(np.array([atrendproject])))))
|
72 |
-
st.write(type(pd.DataFrame([atrendproject])))
|
73 |
-
|
74 |
|
75 |
adf = pd.DataFrame(
|
76 |
astations,
|
@@ -82,4 +82,3 @@ aoption = acontainer1.selectbox(
|
|
82 |
)
|
83 |
if acontainer2.button("Submit") == True:
|
84 |
asubmit(aparam={"aselected":aoption,"acontainer":acontainer3,"adataframe":adf,"acolumntitles":['Date','Celsius'],})
|
85 |
-
|
|
|
68 |
lin.fit(adf3[['Date']].astype('float').astype('int32'), adf3['Celsius'])
|
69 |
|
70 |
atrendproject = [20230223,]
|
71 |
+
# st.write(type(pd.DataFrame(lin.predict(np.array([atrendproject])))))
|
72 |
+
# st.write(type(pd.DataFrame([atrendproject])))
|
73 |
+
st.dataframe(pd.DataFrame([atrendproject]).merge(pd.DataFrame(lin.predict(np.array([atrendproject])))))
|
74 |
|
75 |
adf = pd.DataFrame(
|
76 |
astations,
|
|
|
82 |
)
|
83 |
if acontainer2.button("Submit") == True:
|
84 |
asubmit(aparam={"aselected":aoption,"acontainer":acontainer3,"adataframe":adf,"acolumntitles":['Date','Celsius'],})
|
|