Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
|
| 2 |
# 19feb2023
|
| 3 |
#https://huggingface.co/spaces/keras-io/timeseries_forecasting_for_weather/
|
| 4 |
|
|
@@ -23,7 +22,7 @@ for i in range(ayear-backlogmax,ayear,1):
|
|
| 23 |
df = pd.read_csv(alink, skiprows=[0,1,2], skipfooter=3, engine='python', on_bad_lines='skip')
|
| 24 |
st.write(i)
|
| 25 |
|
| 26 |
-
nparray = np.array([
|
| 27 |
df = df.reset_index() # make sure indexes pair with number of rows
|
| 28 |
for index, row in df.iterrows():
|
| 29 |
if (row[2]!=amonth) or (row[3]!=amonthday):
|
|
@@ -31,7 +30,7 @@ for i in range(ayear-backlogmax,ayear,1):
|
|
| 31 |
|
| 32 |
st.write(row[0],row[1],row[2],row[3],row[4],amonth,amonthday)
|
| 33 |
adate = ("{}.{}.{} 00:00:00").format(row[2], row[1], row[0])
|
| 34 |
-
np.
|
| 35 |
break
|
| 36 |
adf = pd.concat([adf, pd.DataFrame(nparray)], axis=0)
|
| 37 |
-
st.dataframe(adf)
|
|
|
|
|
|
|
| 1 |
# 19feb2023
|
| 2 |
#https://huggingface.co/spaces/keras-io/timeseries_forecasting_for_weather/
|
| 3 |
|
|
|
|
| 22 |
df = pd.read_csv(alink, skiprows=[0,1,2], skipfooter=3, engine='python', on_bad_lines='skip')
|
| 23 |
st.write(i)
|
| 24 |
|
| 25 |
+
nparray = np.array([])
|
| 26 |
df = df.reset_index() # make sure indexes pair with number of rows
|
| 27 |
for index, row in df.iterrows():
|
| 28 |
if (row[2]!=amonth) or (row[3]!=amonthday):
|
|
|
|
| 30 |
|
| 31 |
st.write(row[0],row[1],row[2],row[3],row[4],amonth,amonthday)
|
| 32 |
adate = ("{}.{}.{} 00:00:00").format(row[2], row[1], row[0])
|
| 33 |
+
nparray = np.vstack(nparray([adate,"",row[4],"","","","","","","","","","","",""]))
|
| 34 |
break
|
| 35 |
adf = pd.concat([adf, pd.DataFrame(nparray)], axis=0)
|
| 36 |
+
st.dataframe(adf)
|