Let's say I start with this array:
start_array = [[1.48, 1.79, 2.10, 2.80]
[63, 60, 57, 60]]
I want to take the values in this second array:
second_array = np.array([2.3,3.42, 4.47])
and insert them in in between the values in the first row, with a 1 in another row to code that something occurred there. The remaining places should be filed with zeros.
Result:
result = np.array([[1.48, 1.79, 2.10, 2.3, 2.80, 3.42, 4.47],
[63., 60., 57., 0, 60., 0, 0],
[0, 0, 0, 1, 0, 1, 1]
])