Pandas long to wide reshape, by two variables
I have data in long format and am trying to reshape to wide, but there doesn’t seem to be a straightforward way to do this using melt/stack/unstack:
I have data in long format and am trying to reshape to wide, but there doesn’t seem to be a straightforward way to do this using melt/stack/unstack: