I have a 2-dimensional numpy array in python:
[[ 1 2 1 3 3]
[10 20 30 40 60]]
I would like to have unique values in the first row and adding the corresponding values in the second row together before deleting the columns. So, the output for my array would be this:
[[ 1 2 3 ]
[ 40 20 100 ]]
I'm a newbie to python and I can't think of efficient way doing this for larger scales.