I have the following matrix:
Fruits Person1 Person2 Person3
Apple 2 4 0
Apple 2 0 8
Orange 1 3 0
I would like to move up the value of the rows where the fruits are same.
The final output would be like this:
Fruits Person1 Person2 Person3
Apple 2 4 8
Orange 1 3 0