I´m importing an excel file with column names in merge cells. When I create a pandas data frame what I have is something like this:
|------|------|------|------|------|------|------|------|------|
| | | | A | A | B | B | C | C |
|------|------|------|------|------|------|------|------|------|
| K | L | M | X | Y | X | Y | X | Y |
|------|------|------|------|------|------|------|------|------|
| k1 | l1 | m1 | 1 | 2 | 3 | 4 | 5 | 6 |
|------|------|------|------|------|------|------|------|------|
And what I expect is to put the firts columns names as a new column like this:
|------|------|------|------|------|------|
| K | L | M |value | X | Y |
|------|------|------|------|------|------|
| k1 | l1 | m1 | A | 1 | 2 |
|------|------|------|------|------|------|
| k1 | l1 | m1 | B | 3 | 4 |
|------|------|------|------|------|------|
| k1 | l1 | m1 | C | 5 | 5 |
|------|------|------|------|------|------|