Simplify columns using python pandas

14 Views Asked by At

I want to consolidate columns into the pictured format below using python pandas.

screenshot

I've tried the groupby specific columns method, df.loc method, transpose the columns and ran into duplicating issues when trying to get the solution goal.

0

There are 0 best solutions below