I have a matrix
n = np.array([2,3,4,5,6,7])
I want to randomly split it to sublists of 2 elements like this:
new_array = [[2,5] ,[3,4] , [6,7]]
I tried:
s = np.array_split(n, 2)
but this only divide it into 2 sublist not a sublists of two elements )