a10 commited on
Commit
40f0550
·
1 Parent(s): 98554a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  # 19feb2023
2
  #https://huggingface.co/spaces/keras-io/timeseries_forecasting_for_weather/
3
 
@@ -22,7 +23,7 @@ for i in range(ayear-backlogmax,ayear,1):
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):
@@ -33,4 +34,4 @@ for i in range(ayear-backlogmax,ayear,1):
33
  np.append(nparray,[[adate,"",row[4],"","","","","","","","","","","",""]],axis=0)
34
  break
35
  adf = pd.concat([adf, pd.DataFrame(nparray)], axis=0)
36
- st.dataframe(adf)
 
1
+
2
  # 19feb2023
3
  #https://huggingface.co/spaces/keras-io/timeseries_forecasting_for_weather/
4
 
 
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):
 
34
  np.append(nparray,[[adate,"",row[4],"","","","","","","","","","","",""]],axis=0)
35
  break
36
  adf = pd.concat([adf, pd.DataFrame(nparray)], axis=0)
37
+ st.dataframe(adf)