Suppose I have the following numpy array of shape (10, 5) where I want to split it into two subarrays: the first one contains the first 7 rows and the second one takes the remaining 3 rows. If I do this:
x = np.arange(50).reshape(10, 5)
x1, y1 = np.vsplit(x, 2)
It will split exactly half. How can I make it two subarrays (7,5) and (3,5)?