I want to reshape b into a tabular form
Where I have loaded the data using the following command since directly using pandas it gives me garbage values.
with open("xyz.txt", "rb") as fp:
b = pickle.load(fp)
Printing the b I am getting the following output as a list
[ 0 1 2 3 4 5 6 7 \ 0 0.398039 0.407843 0.409804 0.509804 0.6 0.562745 0.547059 0.55098 8 9 ... 50166 50167 50168 50169 50170 \ 0 0.584314 0.582353 ... -0.003922 0.007843 0.001961 0.0 -0.001961 50171 50172 50173 50174 50175 0 0.0 0.0 -0.001961 -0.001961 0.001961 [1 rows x 50176 columns],
0 1 2 3 4 5 6 7 \ 0 0.003922 0.0 0.005882 0.001961 0.0 0.019608 0.052941 0.058824 8 9 ... 50166 50167 50168 50169 50170 \ 0 0.101961 0.141176 ... 0.003922 0.037255 -0.003922 -0.027451 0.001961 50171 50172 50173 50174 50175 0 0.005882 -0.013725 0.029412 -0.007843 0.003922 [1 rows x 50176 columns]]
**
I want to get the following data in the following way.
Index Values
0 0
1 0.398039
2 0.407843
3 0.509804
**