I have a Dataframe in the following format:
2022-07-04 2022-07-11
27 27.1 27.2 28 28.1 28.2
index id employee
1 1234565 Max project1 customer1 in progress project1 customer1 in progress
project2 customer2 in progress project2 customer2 in progress
What I want to achieve is the following format:
2022-07-04 2022-07-11
27 28
index id employee
1 1234565 Max project1, customer1, in progress project1, customer1, in progress
project2, customer2, in progress project2, customer2, in progress
So I have a multilevel Index, and I want to merge the columns to one column, which are under the Top Level column. So for example under the top level '2022-07-04' I have three columns (27, 27.1, 27.2) and I want to merge these 3 columns to one column, and the same for the next date (2022-07-11) and so on... The size is always 3 columns, so below top level are always 3 columns.