i have a numpy array like the XY coordinates here below:
2d_coords = [ [1,2] [1,1] [2,1] [3,1] ... ]
either [1,1] or [1,2] need to go (doesn\'t c