Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -61,18 +61,14 @@ def asubmit(aparam):
|
|
61 |
adf3 = pd.read_csv(StringIO(csvString), sep=",")
|
62 |
# aparam["acontainer"].dataframe(adf3)
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
plt.show()
|
74 |
-
|
75 |
-
return
|
76 |
|
77 |
from sklearn.linear_model import LinearRegression
|
78 |
# Creating a Linear Regression model on our data
|
|
|
61 |
adf3 = pd.read_csv(StringIO(csvString), sep=",")
|
62 |
# aparam["acontainer"].dataframe(adf3)
|
63 |
|
64 |
+
if ("0" == "mycustom"):
|
65 |
+
import matplotlib.pyplot as plt
|
66 |
+
xpoints = np.array(adf3['Date'])
|
67 |
+
ypoints = np.array(adf3['Celsius'])
|
68 |
+
plt.plot(xpoints, ypoints, 1)
|
69 |
+
plt.xlabel('Date')
|
70 |
+
plt.ylabel('Celsius')
|
71 |
+
plt.show()
|
|
|
|
|
|
|
|
|
72 |
|
73 |
from sklearn.linear_model import LinearRegression
|
74 |
# Creating a Linear Regression model on our data
|