a10 commited on
Commit
042a0a2
·
1 Parent(s): 72e1c2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -12
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
- # 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
 
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