Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,5 +7,12 @@ xl2 = st.file_uploader("Choose second file", key="xl2")
|
|
7 |
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
st.write(pd.read_excel(xl1, sheet_name= "0.85 Threshold"))
|
|
|
7 |
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 |
+
try:
|
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 |
+
break
|
18 |
st.write(pd.read_excel(xl1, sheet_name= "0.85 Threshold"))
|