I have a Dataframe in the following format:
index id employee date week result
1 1234565 Max 2022-07-04 27 Project 1
2 1234565 Max 2022-07-04 27 Task 1
3 1234565 Max 2022-07-04 27 Full-Time
4 1256391 Susanne 2022-07-05 27 Project 2
5 1256391 Susanne 2022-07-05 27 Task 2
6 1256391 Susanne 2022-07-05 27 Full-Time
What I want to achieve is the following format:
index id employee date week result task status
1 1234565 Max 2022-07-04 27 Project 1 Task 1 Full-Time
2 1256391 Susanne 2022-07-05 27 Project 2 Task 2 Full-Time
So the logic is, that always 3 rows belong together. Is there any way to achieve the desired outcome? Besides the Index column, there is not a unique index.