Skip to content

Commit 159b52a

Browse files
committed
fix using function instead of property
1 parent 173be03 commit 159b52a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

textractor/entities/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def to_pandas(self, use_columns=False, checkbox_string="X "):
426426
table = [["" for _ in range(self.column_count)] for _ in range(self.row_count)]
427427

428428
for cell in self.table_cells:
429-
table[cell.row_index - 1][cell.col_index - 1] = " ".join([checkbox_string[0 if c.is_selected else 1] for c in cell.checkboxes]) + " ".join([w.text for w in cell.words])
429+
table[cell.row_index - 1][cell.col_index - 1] = " ".join([checkbox_string[0 if c.is_selected() else 1] for c in cell.checkboxes]) + " ".join([w.text for w in cell.words])
430430

431431

432432
return DataFrame(table[1:] if use_columns else table, columns=columns if use_columns else None)

0 commit comments

Comments
 (0)