I have a dataframe that looks like this:

How can I use pandas in order to transform the dataframe into this:

Thank you for your help :)
Tried using unstack() but couldn't figure it out.
I have a dataframe that looks like this:

How can I use pandas in order to transform the dataframe into this:

Thank you for your help :)
Tried using unstack() but couldn't figure it out.
 
    
    