Hello everyone,
I have an input with nested arrays with the structure as shown below:
The main array has 6 elements. Each of the main 6 elements has 251 sub-arrays. And each of the 251 sub-array has 4 elements.
I would like to transform the array in such a way that the output array has 251 elements with each element having the the individual element from the main array. For example, if we consider
Input:
[[1,2,3,4....251],[1,2,3,4....251],.........[1,2,3,4....251],[1,2,3,4....251]],
I would like to to be transformed as
output:
[[1,1,1,1...1],[2,2,2,....2].......[251,251,251,....251]
How can this be done?
Thank you for your time
Regards,
Sid