From 0be58de1cbf77fe8851f2cf2cbaa7cff215af113 Mon Sep 17 00:00:00 2001 From: Frh Date: Wed, 22 Apr 2020 14:23:52 -0700 Subject: [PATCH] Fix in table diff --- camelot/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camelot/utils.py b/camelot/utils.py index 8672f3a..b2333dc 100644 --- a/camelot/utils.py +++ b/camelot/utils.py @@ -1157,7 +1157,7 @@ def compare_tables(left, right): table1, table2 = table2, table1 name_table1, name_table2 = name_table2, name_table1 for index, lrow in table1.iterrows(): - if index < table2.shape[1]: + if index < table2.shape[0]: srow = table2.loc[index, :] if not lrow.equals(srow): diff_df = pd.DataFrame()