Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ astationcolumns = ['akey','astationcode','alatitude','alongitude','atitle',]
|
|
12 |
acontainer1 = st.empty()
|
13 |
acontainer2 = st.empty()
|
14 |
acontainer3 = st.empty()
|
|
|
15 |
|
16 |
def asubmit(aparam):
|
17 |
adf2 = aparam["adataframe"]
|
@@ -30,16 +31,12 @@ def asubmit(aparam):
|
|
30 |
)
|
31 |
aparam["acontainer"].map(adf3)
|
32 |
|
33 |
-
return
|
34 |
-
|
35 |
-
|
36 |
abacklogmax = 10
|
37 |
atoday = datetime.date.today()
|
38 |
ayear = int(atoday.strftime("%Y"))-0
|
39 |
amonth = int(atoday.strftime("%m"))
|
40 |
amonthday = int(atoday.strftime("%d"))
|
41 |
|
42 |
-
|
43 |
csvString = ""
|
44 |
csvString += (",").join(mytitles)
|
45 |
adf3 = pd.DataFrame(columns=mytitles)
|
@@ -62,6 +59,8 @@ def asubmit(aparam):
|
|
62 |
|
63 |
adf3.plot.scatter(x='Date', y='Celsius', alpha=.1)
|
64 |
|
|
|
|
|
65 |
from sklearn.linear_model import LinearRegression
|
66 |
# Creating a Linear Regression model on our data
|
67 |
lin = LinearRegression()
|
|
|
12 |
acontainer1 = st.empty()
|
13 |
acontainer2 = st.empty()
|
14 |
acontainer3 = st.empty()
|
15 |
+
acontainer4 = st.empty()
|
16 |
|
17 |
def asubmit(aparam):
|
18 |
adf2 = aparam["adataframe"]
|
|
|
31 |
)
|
32 |
aparam["acontainer"].map(adf3)
|
33 |
|
|
|
|
|
|
|
34 |
abacklogmax = 10
|
35 |
atoday = datetime.date.today()
|
36 |
ayear = int(atoday.strftime("%Y"))-0
|
37 |
amonth = int(atoday.strftime("%m"))
|
38 |
amonthday = int(atoday.strftime("%d"))
|
39 |
|
|
|
40 |
csvString = ""
|
41 |
csvString += (",").join(mytitles)
|
42 |
adf3 = pd.DataFrame(columns=mytitles)
|
|
|
59 |
|
60 |
adf3.plot.scatter(x='Date', y='Celsius', alpha=.1)
|
61 |
|
62 |
+
return
|
63 |
+
|
64 |
from sklearn.linear_model import LinearRegression
|
65 |
# Creating a Linear Regression model on our data
|
66 |
lin = LinearRegression()
|