I have a list of lists as follows where in each list the first element have indexes and the second element has the value of each indexes (Note: each element in the list is a numpy array).
mylist = [[[1 2 4 5], [0.1 0.7 0.7 0.7]], [[0 3], [0.2 0.4]]]
So my final output should be an array like this.
[0.2, 0.1, 0.7, 0.4, 0.7, 0.7]
I know the length of the array prior. So, in the above array the length is 6.
So, I defined a numpy array as follows
import numpy as np
np.empty(6, dtype=object)
I am wondering if it is possible to fill the numpy array at each iteration simultaneouly without filling each index one by one.
I am happy to provide more details if needed.
