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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
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
- #pandas.testing.assert_frame_equal
 
 
 
 
 
 
 
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"))