Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,14 +22,16 @@ for i in range(ayear-backlogmax,ayear,1):
|
|
22 |
df = pd.read_csv(alink, skiprows=[0,1,2], skipfooter=3, engine='python', error_bad_lines=True)
|
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[1]!=amonth) or (row[2]!=amonthday):
|
29 |
continue
|
|
|
|
|
30 |
adate = ("{}.{}.{} 00:00:00").format(row[2], row[1], row[0])
|
31 |
-
np.append([adate,"",row[4],"","","","","","","","","","","",""],nparray)
|
32 |
-
|
33 |
adf = pd.concat([adf, pd.DataFrame(nparray)], axis=0)
|
34 |
break
|
35 |
-
st.dataframe(adf)
|
|
|
22 |
df = pd.read_csv(alink, skiprows=[0,1,2], skipfooter=3, engine='python', error_bad_lines=True)
|
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[1]!=amonth) or (row[2]!=amonthday):
|
29 |
continue
|
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 |
+
# np.append([adate,"",row[4],"","","","","","","","","","","",""],nparray)
|
34 |
+
nparray = [adate,"",row[4],"","","","","","","","","","","",""]
|
35 |
adf = pd.concat([adf, pd.DataFrame(nparray)], axis=0)
|
36 |
break
|
37 |
+
st.dataframe(adf)
|