Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -55,13 +55,22 @@ def asubmit(aparam):
|
|
55 |
|
56 |
adate = ("{:02d}.{:02d}.{}").format(row[3], row[2], row[1])
|
57 |
csvString += '\n'+(",").join([adate,str(row[4])])
|
58 |
-
st.write(row[0],adate)
|
59 |
adf3 = adf3.append({"Date":adate,"Celsius":(row[4]),}, ignore_index=True)
|
60 |
break
|
61 |
adf3 = pd.read_csv(StringIO(csvString), sep=",")
|
62 |
-
aparam["acontainer"].dataframe(adf3)
|
63 |
|
64 |
-
adf3.plot.scatter(x='Date', y='Celsius', alpha=.1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
return
|
67 |
|
|
|
55 |
|
56 |
adate = ("{:02d}.{:02d}.{}").format(row[3], row[2], row[1])
|
57 |
csvString += '\n'+(",").join([adate,str(row[4])])
|
58 |
+
# st.write(row[0],adate)
|
59 |
adf3 = adf3.append({"Date":adate,"Celsius":(row[4]),}, ignore_index=True)
|
60 |
break
|
61 |
adf3 = pd.read_csv(StringIO(csvString), sep=",")
|
62 |
+
# aparam["acontainer"].dataframe(adf3)
|
63 |
|
64 |
+
# adf3.plot.scatter(x='Date', y='Celsius', alpha=.1)
|
65 |
+
|
66 |
+
import matplotlib.pyplot as plt
|
67 |
+
xpoints = np.array(adf3['Date'])
|
68 |
+
ypoints = np.array(adf3['Celsius'])
|
69 |
+
plt.plot(xpoints, ypoints, 1)
|
70 |
+
plt.xlabel('Date')
|
71 |
+
plt.ylabel('Celsius')
|
72 |
+
|
73 |
+
plt.show()
|
74 |
|
75 |
return
|
76 |
|