I'm working on numpy to manage different array. I have a python function that returns to me this array of arrays:
res = [[[1, 2], [5, 6], [7, 8]], [[1, 2], [5, 6], [7, 8]], [[1, 2], [5, 6], [7, 8]], [[1, 2], [5, 6], [7, 8]], [[1, 2], [5, 6], [7, 8]]]
What i desired to extract from this res variable is this one:
a = [1 2 1 2 1 2 1 2 1 2]
b = [5 6 5 6 5 6 5 6 5 6]
c = [7 8 7 8 7 8 7 8 7 8]
The idea is to extract and merge the first array of each array into a, the second arrays to b and so on.
Could you please help me to achieve this result? Thanks a lot!