split an array dependent on the array values in python,"array([[1, 6], [2, 6], [3, 8], [4, 10], [5, 6], [5, 7]])"