I\'m relatively new to pandas and I am stuck on how to restructure a dataframe. Here is a very simplified example of what I want to do:
My current df is:
N