group the rows having same first element and find max according to last column.
Like row 0 and 1 have same starting element so go to last column and find max from it and return that row without looping .
utl = np.array ([[ 21. , 0.01 ],
[ 21. , 0.02 ],
[ 26. , 0.04 ],
[ 26. , 0.03 ],
[ 26. , 0.03 ],
[ 34. , 0.03 ],
[ 34. , 0.09 ],
[ 26. , 0.03 ]])
output must be
[ 21. , 0.02 ]
[ 34. , 0.09 ]
[ 26. , 0.04 ]