2d matrix into Nx3 column data

Anup reni foxprone.r52 at gmail.com
Thu Jun 2 04:27:02 EDT 2016


i would like to transform this:

      -1     0-0.8  0.64 -0.36-0.4  0.16 -0.84
 0.0     0 -1.00
 0.4  0.16 -0.84
 0.8  0.64 -0.36

to something like this:

     x  y  result
id                1  -0.8 -1    0.642  -0.8  0   -0.363  -0.4 -1
0.164  -0.4  0   -0.845   0.0 -1    0.006   0.0  0   -1.007   0.4 -1
 0.168   0.4  0   -0.849   0.8 -1    0.6410  0.8  0   -0.36



More information about the Python-list mailing list