I would like to transform the following DataFrame:
Cat A Cat B Total points
0 20 30 50
1 25 35 60
Into:
Cat Points Total points
0 A 20 50
1 A 25 60
2 B 30 50
3 B 35 60
I've tried to reply to my own post but i seems like it didn't work. So i'll modify my original post instead. In the future how should I reply to a comment?
To answer your question: Yes it was 35 instead of 45
This is a screen shot of my DataFrame: https://i.stack.imgur.com/OQ79p.png