I have a simple data frame:
I would like to transform it to the form that looks like this:
I have been trying to thinker with pivot_table but with now luck. I am not entirely sure if the pivot table able to do it.
I have a simple data frame:
I would like to transform it to the form that looks like this:
I have been trying to thinker with pivot_table but with now luck. I am not entirely sure if the pivot table able to do it.