Jul-19-2022, 04:08 PM
Hey everyone,
I am currently struggling with the structure of data I receive. As a result of another (not important here) function I get a list filled with numpy arrays at a large scale (about 20 thousand entries):

I am currently struggling with the structure of data I receive. As a result of another (not important here) function I get a list filled with numpy arrays at a large scale (about 20 thousand entries):
first_array=[array([[1, 0, 2, 4, 3]], dtype=int64), array([[2, 6, 8, 3, 3]], dtype=int64), array([[0, 0, 4, 3, 3]], dtype=int64), array([[4, 4, 3, 2, 3]], dtype=int64), ...]For the further procession of this data I need this input in the reverse structure: An array of lists like the following form:
output_array=array([ [1, 0, 2, 4, 3], [2, 6, 8, 3, 3], [0, 0, 4, 3, 3], [4, 4, 3, 2, 3], ....])Is there a way of doing this in a way that keeps the computational time low?
