How to unpivot a pandas dataframe on two ID fields with multiple set of columns I have a pandas Dataframe that looks like this: