I have a list of row and col indices of a numpy array as shown below. I need to find and return the row and col index of the centroid of the closest spaced points.