Spaces:
Runtime error
Runtime error
"""The following program will read in 2 XL sheets of KP matches and the user will evaluate the quality of the matching""" | |
import streamlit as st | |
import pandas as pd | |
xl1 = st.file_uploader("Choose first file", key="xl1") | |
xl2 = st.file_uploader("Choose second file", key="xl2") | |
if xl1 is not None and xl2 is not None: | |
#assert that the first few columns are the same | |
df1 = pd.read_excel(xl1, sheet_name= "0.85 Threshold") | |
df2 = pd.read_excel(xl2, sheet_name= "0.85 Threshold") | |
if not df1[["Attendee A","Attendee B","KP"]].equals(df2[["Attendee A","Attendee B","KP"]]) | |
st.write("The files' attendees and KPs don't match!") | |
xl1 = None | |
xl2 = None | |
else: | |
for r1,r2 in zip(df1,df2): | |
st.write(r1) | |
st.write(r2) |