merge_table
does not handle merge child table header columns properly
#121
Labels
python
Relates to the Python version of TRP
Issue
The expectation from using
merge_tables
is that it will convert 2 tables like this:into:
But instead the output is
This is because the headers are identified based on the existence of
COLUMN_HEADER
in a block'sEntityTypes
field and the child table's top block keep this entity type even after merging. The solution is to simply drop the this value fromEntityTypes
if it's there while merging.The text was updated successfully, but these errors were encountered: