I have 2 numpy arrays and I would like to stack them like this:
arr1 = [[1,2,3]
[4,5,6]
[7,8,9]
[10,11,12]]
arr2 = [[a,b,c]
[d,e,f]
[g,h,i]
[j,k,l]]
SomeStackFunction(a,b) # need this funtion
output_array = [[1,2,3]
[4,5,6]
[a,b,c]
[d,e,f]
[7,8,9]
[10,11,12]
[g,h,i]
[j,k,l]]
What's the most efficient way to do this? I have fairly large arrays and actually want to stack the every 4 rows.