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