Can somebody suggest an efficient method for getting the highest value in one column for each unique value in another
the np.array looks like this [column0,column1,column2,column3]
[[ 37367 421 231385 93]
[ 37368 428 235156 93]
[ 37369 408 234251 93]
[ 37372 403 196292 93]
[ 55523 400 247141 139]
[ 55575 415 215818 139]
[ 55576 402 204404 139]
[ 69940 402 62244 175]
[ 69941 402 38274 175]
[ 69942 404 55171 175]
[ 69943 416 55495 175]
[ 69944 407 90231 175]
[ 69945 411 75382 175]
[ 69948 405 119129 175]]
where i want to return the highest value of column 1 based on the unique value of column 3. After the new array should look like this:
[[ 37368 428 235156 93]
[ 55575 415 215818 139]
[ 69943 416 55495 175]]
I know how to do this by looping but that is not what i am looking after because the table i am working in is quite big and i want to avoid looping