Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,11 +8,11 @@ if xl1 is not None and xl2 is not None:
|
|
8 |
#assert that the first few columns are the same
|
9 |
df1 = pd.read_excel(xl1, sheet_name= "0.85 Threshold")
|
10 |
df2 = pd.read_excel(xl2, sheet_name= "0.85 Threshold")
|
11 |
-
|
12 |
-
pandas.testing.assert_frame_equal(df1[["Attendee A","Attendee B","KP"]], df1[["Attendee A","Attendee B","KP"]])
|
13 |
-
except AssertionError as e:
|
14 |
st.write("The files' attendees and KPs don't match!")
|
15 |
xl1 = None
|
16 |
xl2 = None
|
17 |
-
|
18 |
-
|
|
|
|
|
|
8 |
#assert that the first few columns are the same
|
9 |
df1 = pd.read_excel(xl1, sheet_name= "0.85 Threshold")
|
10 |
df2 = pd.read_excel(xl2, sheet_name= "0.85 Threshold")
|
11 |
+
if not df1[["Attendee A","Attendee B","KP"]].equals(df2[["Attendee A","Attendee B","KP"]])
|
|
|
|
|
12 |
st.write("The files' attendees and KPs don't match!")
|
13 |
xl1 = None
|
14 |
xl2 = None
|
15 |
+
else:
|
16 |
+
for r1,r2 in zip(df1,df2):
|
17 |
+
st.write(r1)
|
18 |
+
st.write(r2)
|