Lets say that we have the following numpy array:
[[ 0 0 0]
[ 1 0 0]
[ 2 0 0]
[ 3 0 0]
[ 4 0 0]
[ 5 0 0]
[ 6 0 0]
[ 7 0 0]
[ 8 0 0]
[ 9 0 0]
[10 0 0]
[11 0 0]
[12 0 0]
[13 0 0]]
How can i insert this np.array
[[0 45]
[1 34]
[2 23]
[3 56]
[4 45]
[5 34]]
staring from index nr 3 on column 1 and column 2 so that in the end it will look like this:
[[ 0 0 0]
[ 1 0 0]
[ 2 0 45]
[ 3 1 34]
[ 4 2 23]
[ 5 3 56]
[ 6 4 45]
[ 7 5 34]
[ 8 0 0]
[ 9 0 0]
[10 0 0]
[11 0 0]
[12 0 0]]
The idea is that i would like to specify the index nr where the second array should be placed in the first one. I would a appreciate a solution which takes into account the speed of execution. Both arrays are have a few million rows, the first array is always bigger than the second one.