let's say I have a bi-dimensional array like that
numpy.array([[0,1,1.2,3],[1,5,3.2,4],[3,4,2.8,4], [2,6,2.3,5]])
I want to have an array formed eliminating whole rows based on uniqueness of values of last column, selecting the row to keep based on value of third column. e.g. in this case i would like to keep only one of the rows with 4 as last column, and choose the one which has the minor value of third column, having something like that as a result:
array [0,1,1.2,3],[3,4,2.8,4],[2,6,2.3,5]
thus eliminating row [1,5,3.2,4]
which would be the best way to do it?