My data is in this format: https://imgur.com/NBrkeM9
and I would like to get it into this format: https://imgur.com/muVyeTe
I am using pandas in python. I am t