Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
#%%
|
2 |
from matplotlib.pyplot import title
|
3 |
import tensorflow as tf
|
@@ -46,7 +47,7 @@ if ("0" != ""):
|
|
46 |
alink = ("https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=CLMTEMP&year={}&rformat=csv&station=HKO").format(str(i))
|
47 |
df = pd.read_csv(alink, skiprows=[0,1,2], skipfooter=3, engine='python', on_bad_lines='skip')
|
48 |
|
49 |
-
df = df.reset_index() # make sure indexes pair with number of rows
|
50 |
for index, row in df.iterrows():
|
51 |
if (row[2]!=amonth) or (row[3]!=amonthday):
|
52 |
continue
|
|
|
1 |
+
|
2 |
#%%
|
3 |
from matplotlib.pyplot import title
|
4 |
import tensorflow as tf
|
|
|
47 |
alink = ("https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=CLMTEMP&year={}&rformat=csv&station=HKO").format(str(i))
|
48 |
df = pd.read_csv(alink, skiprows=[0,1,2], skipfooter=3, engine='python', on_bad_lines='skip')
|
49 |
|
50 |
+
# df = df.reset_index() # make sure indexes pair with number of rows
|
51 |
for index, row in df.iterrows():
|
52 |
if (row[2]!=amonth) or (row[3]!=amonthday):
|
53 |
continue
|