Table extraction #406
-
i want to extract this table(in red circle) in this photo as a separate table |
Beta Was this translation helpful? Give feedback.
Answered by
samkit-jain
Apr 6, 2021
Replies: 3 comments 2 replies
-
I think the default setting of |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for sharing the PDF. The tables are getting merged in because they are contiguous. One option could be to remove the for row in merged_table:
non_null_row = [cell for cell in row if cell is not None]
if len(non_null_row) > 2:
middle_table.append(non_null_row)
else:
bottom_table.append(non_null_row) Does it solve your use case? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
samkit-jain
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing the PDF. The tables are getting merged in because they are contiguous. One option could be to remove the
None
values from the rows and then separate them as 2 tables likeDoes it solve your use case?