We have the following numpy array:
A = [[0,1,2,3],
[2,3,4,5],
[1,2,3,4],
[1,1,1,1],
[2,2,2,2],
[3,3,3,3],
[0,1,2,3],
[2,3,4,5],
[1,2,3,4],
[10,10,10,10],
[20,20,20,20],
[30,30,30,30]]
I would like to create two new arrays:
B = [[0,1,2,3],
[2,3,4,5],
[1,2,3,4],
[0,1,2,3],
[2,3,4,5],
[1,2,3,4]]
and
C = [[1,1,1,1],
[2,2,2,2],
[3,3,3,3],
[10,10,10,10],
[20,20,20,20],
[30,30,30,30]]
Basically I would like to split array A into two new arrays where B takes in groups of 3 rows, and array C takes the next groups of 3 rows.