vives commited on
Commit
dc38e16
·
1 Parent(s): ffa5ef6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- 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"))
 
 
 
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)