ver Dec22nd

re-organized the evaluator structure to improve the extensibility
This commit is contained in:
David Chang
2023-12-22 14:01:26 +08:00
parent 295d09f1b2
commit f4664bd069
8 changed files with 91 additions and 53 deletions

View File

@@ -0,0 +1,14 @@
def compare_table(expected, actual):
import pandas as pd
df1 = pd.read_excel(expected)
df2 = pd.read_excel(actual)
# Compare the DataFrames
return 1 if df1.equals(df2) else 0
if __name__ == '__main__':
path1 = ""
path2 = ""
print(compare_table(path1, path2))