Reputation: 41
I am working on a Pandas dataframe in Python, i would like to do following rearrangement of the dataset :
I tried using for loops, but I wonder if there is any simpler solution using Pandas - i couldn't find anything more elegant.
Upvotes: 0
Views: 149