ows-master/startpakketten/script.py

21 lines
813 B
Python

import pandas as pd
from checkheaders import check_headers_dashboard_inschrijvingenfile, check_headers_predelibfile
from compare_sp import compare_sp_values
# Read the Excel file
df_predelib = pd.read_excel('db.xlsx')
df_dashboard = pd.read_excel('dashboard_inschrijvingen.xlsx')
processed_predelib_df = check_headers_predelibfile(df_predelib)
processed_dashboard_df = check_headers_dashboard_inschrijvingenfile(df_dashboard)
# Further processing can be done with processed_predelib_df and processed_dashboard_df
print("Processed Predelib DataFrame:")
print(processed_predelib_df)
print("\nProcessed Dashboard DataFrame:")
print(processed_dashboard_df)
compare_sp_values(processed_predelib_df, processed_dashboard_df)
print("\nComparison of the predelib file with the dashboard file on SP values complete.")