15 lines
295 B
Python
15 lines
295 B
Python
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))
|