I want a help for a personal project!
i have a df (Name x Date) looking like this
Name1 Name2 Name3 Name3 Name 4 Name5 Name6 Name 3
Date 1 x1 x2 x3 x4 x5 x6 x7 x8
Date 2 y1 y2 y3 y4 y5 y6 y7 y8
Date 3 z1 z2 z3 z4 z5 z6 z7 y8
etc...
and i want to convert it like this
Name1 Name2 Name3 Name 4 Name5 Name6
Date 1 x1 x2 x3+x4+x8 x5 x6 x7
Date 2 y1 y2 y3+y4+y8 y5 y6 y7
Date 3 z1 z2 z3+z4+z8 z5 z6 z7
or to create an new df looking like this. Is there anything easy to do? Thank you in advance!