I would like to create a new column with a set of datas for each line of a specific column, creating a breakdown to the first level. e.g:
Level
1
2
3
Level Breakdown
1
a
b
c
d
2
a
b
c
d
3
a
b
c
d
any hints how do I code this breakdown on pandas dataframe?
I understand that Multiindex must have an array to match with the 'Breakdown'. But the dataframe has more than 10 thousand registers, how can I combine my tuples with this amount of range?
In fact, I've got a raw database that I have to rearrange like a schedule format. Hereunder, I can share a small sample: enter image description here
So, I would like to rearrange the database in this format: enter image description here