vives commited on
Commit
84a9829
·
1 Parent(s): c7a503b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1,8 +1,11 @@
1
  """The following program will read in 2 XL sheets of KP matches and the user will evaluate the quality of the matching"""
2
  import streamlit as st
3
  import pandas as pd
4
- xl1 = st.file_uploader("Choose a file")
5
- xl2 = st.file_uploader("Choose a file")
6
 
7
- if xl1 is not None:
 
 
 
8
  st.write(pd.read_excel(xl1, sheet_name= "0.85 Threshold"))
 
1
  """The following program will read in 2 XL sheets of KP matches and the user will evaluate the quality of the matching"""
2
  import streamlit as st
3
  import pandas as pd
4
+ xl1 = st.file_uploader("Choose first file", key="xl1")
5
+ xl2 = st.file_uploader("Choose second file", key="xl2")
6
 
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"))