On Thu, Jun 2, 2016 at 4:57 AM Anup reni <foxprone....@gmail.com> wrote:
> 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 > It's hard to read your example. Could you write it out more simply? Perhaps with comma separators instead of spaces? It might help to also give some context around why you want to make the transformation. -- https://mail.python.org/mailman/listinfo/python-list