I wish to convert
edit : the code below is a 3D list of list,
[
[
[
[1,2,3,],
[4,5,6,],
],
[
[7,8,9,],
[10,11,12,],
],
],
[
[
[A,B,C,],
[D,E,F,],
],
[
[G,H,I,],
[J,K,L,],
],
],
]
Into
[
[1,2,3],
[4,5,6],
[7,8,9],
[10,11,12],
[A,B,C],
[D,E,F],
[G,H,I],
[J,K,L]
]
I have tried numpy.flatten but with no success https://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.flatten.html
my_array.reshape(8, 3)?dtypedo you want? What areA,Betc. As shown those are variables, not strings. As such they must have values, which in Python could be anything. Variable ids won't display in the actual list (or array).