I have an output which is as follows :
data = [array([1. , 1.14112001, 0.7205845 , 1.41211849, 0.46342708,
1.65028784, 0.24901275]),
array([1.83665564, 0.09442164, 1.95637593, 0.01196838, 1.99991186,
0.00822115, 1.96379539]),
array([0.08347845, 1.85090352, 0.23174534, 1.67022918, 0.44121095,
1.43616476])]
That is a list of 3 arrays. I have to flatten the array. This should be simple as data.flatten("F")
But it does not work
The output should contain the first element of each array then the second and so on.
something like: 1,1.83665564,1.14112001,0.09442164,1.85090352
and so on. How can i do that
Update :
the output I am getting with given code as follows
array([array([1. , 1.14112001, 0.7205845 , 1.41211849, 0.46342708,
1.65028784, 0.24901275]),
array([1.83665564, 0.09442164, 1.95637593, 0.01196838, 1.99991186,
0.00822115, 1.96379539]),
array([0.08347845, 1.85090352, 0.23174534, 1.67022918, 0.44121095,
1.43616476])], dtype=object)