I am trying to get the data in the merged cell Level 1
in all the smallest rows, or iterate over the rows created by the merged cells.
I am getting
[['Level 1', 'Level 2', 'Level 3'], ['', '', 'Level 3'], ['', '', 'Level 3']]
when I am fetching the data for the first 3 rows using get_all_values
method.
The expectation is to get:
[['Level 1', 'Level 2', 'Level 3'], ['Level 1', 'Level 2', 'Level 3'], ['Level 1', 'Level 2', 'Level 3']]
instead.
Currently I am using dictionaries to hold the data using a lot of logic to figure out the missing column data. Is there a better way of flattening the merged cells to their respective rows?