For one of the document I have got index out of range. Please suggest to handle the error. May be for few row there can be error but can we save the partial extracted data to dataframe?
Config for parser
parser = Lattice(line_scale=30, split_text=True)
Sample Input Table
Error
File "/home/ubuntu/.local/lib/python3.6/site-packages/camelot/parsers/lattice.py", line 412, in extract_tables
table = self._generate_table(table_idx, cols, rows, v_s=v_s, h_s=h_s)
File "/home/ubuntu/.local/lib/python3.6/site-packages/camelot/parsers/lattice.py", line 355, in _generate_table
table, indices, shift_text=self.shift_text
File "/home/ubuntu/.local/lib/python3.6/site-packages/camelot/parsers/lattice.py", line 160, in _reduce_index
if t.cells[r_idx][c_idx].hspan:
IndexError: list index out of range
For one of the document I have got index out of range. Please suggest to handle the error. May be for few row there can be error but can we save the partial extracted data to dataframe?
Config for parser
parser = Lattice(line_scale=30, split_text=True)
Sample Input Table
Error