For a given numpy array:
[[1, 1, 'IGNORE_THIS_COL', 100],
[1, 1, 'IGNORE_THIS_COL', 101],
[1, 2, 'IGNORE_THIS_COL', 100]]
Is it possible to sum the rows (and columns conditionally)? Say column 0 is group and column 1 is user, then I would like to add the fourth column accordingly. The final 'summed' array should look like this.
[[1, 1, 'IGNORE_THIS_COL', 201],
[1, 2, 'IGNORE_THIS_COL', 100]]
I have already checked multiple answers, including Numpy: conditional sum.