Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #109370
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Michael Selik <michael.selik@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: 2d matrix into Nx3 column data |
| Date | Thu, 02 Jun 2016 14:31:19 +0000 |
| Lines | 20 |
| Message-ID | <mailman.97.1464877890.1839.python-list@python.org> (permalink) |
| References | <CAC0KhVV_=qKSq7ykEoDQ_spyXBc1xsLjyj=-roHOZ5AntunuOg@mail.gmail.com> <CAGgTfkMJZu508A2OqO_ugWXxsEEKsD35=-mvF9SSLCB5eG4uxA@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de KJYqk/H2k5D3lA1F+kBXJglPqznTntvgFpXXVzmco3xg== |
| Return-Path | <michael.selik@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.014 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'context': 0.05; 'subject:into': 0.09; 'thu,': 0.15; '-1.00': 0.16; '2016': 0.16; 'comma': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'example.': 0.18; 'transform': 0.18; 'email addr:gmail.com>': 0.18; 'to:2**1': 0.21; 'this:': 0.23; 'header :In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.220.174': 0.29; 'received:google.com': 0.35; 'could': 0.35; 'something': 0.35; 'instead': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'received:209.85.220': 0.38; 'why': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'your': 0.60; 'more': 0.63; '0.8': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=HtlNQVHU6waZ4IIpjGak/NV5b7X96Z8uwxrVttPjzSY=; b=sFvpFWynFUTvR19elowBgu9C519th9jghTIZZ4OM04TO0+wXG0eEaWSRbzbPIVQduD fbBTFhiw4F7papJAVTyVnfktutbpG/JmzAGnltR/WzY6kpErrCzg+3P06jwVWJilo+Jw IjmWs1UQ7cPEcnboKzBBvylTneccxvPMWrLL+SUibwFZgQGoBn4w97/145LIS5nQ8asp b2Hn+NWYoNpOsQHGwqgQS3KStDsi/FEwC8LYwzkrgO0Hry/U6LNWBiDkFQZTexksbULJ vKkgTD248XLceGeO1jY/OixehiQxs614/2gJRJn5feCuyADGpySlWmMCRajdp3T8T8yJ 2c5A== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=HtlNQVHU6waZ4IIpjGak/NV5b7X96Z8uwxrVttPjzSY=; b=QYQGFRvaSx9Jmoil3jz3U9JukUn+6gCY2+XZmaAIk0a/jottDE7JOPlulxe0ztZPb8 FItMTw+8u02MqMPh2Kf8/YouW5gHiPR03MMetTg1bQtZgtGqJNQd070RVuSVNH4pxqI8 ypM/X9q0e0cfWDd8oo7gjror513NJGjpn7uM0y2l3NyeV1H5SBcvwBLg9FPIoFqm31P4 3V5hsgLQirnTQmfKJQfxcj7V1m1VQTiyz6341/WT43iUEWTQLwV44TuA1KysIT3MzN1n 1hS/Yuf7rt02d8ozKQcmwSamDTixT7+W+gW3cLXbGSC6z5LnGS6t3ml+0O6GybTLcJGi OE/Q== |
| X-Gm-Message-State | ALyK8tJQ0reGmXeDkE/DIr5eand51m5pmxLhVW2amekvAIqwZbySu/Q+1CrgBH9/cRBsKZCglKqWMSpE9Q8R3g== |
| X-Received | by 10.55.144.68 with SMTP id s65mr42744531qkd.209.1464877888661; Thu, 02 Jun 2016 07:31:28 -0700 (PDT) |
| In-Reply-To | <CAC0KhVV_=qKSq7ykEoDQ_spyXBc1xsLjyj=-roHOZ5AntunuOg@mail.gmail.com> |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.22 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.22 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <CAGgTfkMJZu508A2OqO_ugWXxsEEKsD35=-mvF9SSLCB5eG4uxA@mail.gmail.com> |
| X-Mailman-Original-References | <CAC0KhVV_=qKSq7ykEoDQ_spyXBc1xsLjyj=-roHOZ5AntunuOg@mail.gmail.com> |
| Xref | csiph.com comp.lang.python:109370 |
Show key headers only | View raw
On Thu, Jun 2, 2016 at 4:57 AM Anup reni <foxprone.r52@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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: 2d matrix into Nx3 column data Michael Selik <michael.selik@gmail.com> - 2016-06-02 14:31 +0000
csiph-web