Apr-16-2019, 04:30 PM
I am trying to work with matlab files on python and I managed to extract the data needed and it is loaded in 1D array form. But I now want to combine these 1d array vertically to form a table so that I can then transform them into a Dataframe.
How can I best do this? Below is how 2 of the arrays look like.. I have 15 arrays like this which I wish to combine.
array 1
array([[[[1.00000e+00],
[2.00000e+00],
[3.00000e+00],
...,
[6.09766e+05],
[6.09767e+05],
[6.09768e+05]]]])
shape: (1, 1, 609768, 1)
array([[[[3.89786921e-02],
[5.04933377e+00],
[1.00494220e+01],
...,
[1.18832843e+06],
[1.18833845e+06],
[1.18834845e+06]]]])
shape: (1, 1, 609768, 1)
Any ideas on how best I can process this data so that I get a nice looking table in the end is most welcome :) Thank you.
How can I best do this? Below is how 2 of the arrays look like.. I have 15 arrays like this which I wish to combine.
array 1
array([[[[1.00000e+00],
[2.00000e+00],
[3.00000e+00],
...,
[6.09766e+05],
[6.09767e+05],
[6.09768e+05]]]])
shape: (1, 1, 609768, 1)
array([[[[3.89786921e-02],
[5.04933377e+00],
[1.00494220e+01],
...,
[1.18832843e+06],
[1.18833845e+06],
[1.18834845e+06]]]])
shape: (1, 1, 609768, 1)
Any ideas on how best I can process this data so that I get a nice looking table in the end is most welcome :) Thank you.