Let's say I have two lists. One contains a list of headers that is repeated. And one contains values. See example below:
cols = ['col1', 'col2', 'col3', 'col1', 'col2', 'col3']
values = [1, 3, 4, 6, 7, 1]
How would I create a dataframe from such a structure with three columns ('col1', 'col2', 'col3') and two rows.
Desired result
'col1', 'col2', 'col3'
1,3,4
6,7,1