parent
77d289bd86
commit
79ea4adcd1
|
|
@ -149,6 +149,11 @@ class Hybrid(BaseParser):
|
|||
# Our boundary is fully after the split, move on
|
||||
idx_boundaries = idx_boundaries - 1
|
||||
previous_boundary = boundary
|
||||
if idx_boundaries < 0:
|
||||
# If this is the last boundary to the left, set its
|
||||
# edge at the split
|
||||
boundary[0] = split
|
||||
idx_splits = idx_splits - 1
|
||||
else:
|
||||
# The split is inside our boundary: split it
|
||||
new_boundary = [split, boundary[1]]
|
||||
|
|
|
|||
|
|
@ -286,6 +286,13 @@ def test_network_layout_kwargs():
|
|||
|
||||
|
||||
# Hybrid parser
|
||||
def test_hybrid():
|
||||
df = pd.DataFrame(data_stream)
|
||||
|
||||
filename = os.path.join(testdir, "health.pdf")
|
||||
tables = camelot.read_pdf(filename, flavor="hybrid")
|
||||
assert_frame_equal(df, tables[0].df)
|
||||
|
||||
def test_hybrid_vertical_header():
|
||||
"""Tests a complex table with a vertically text header.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue