Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #69528

Re: writing reading from a csv or txt file

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <jsf80238@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.088
X-Spam-Evidence '*H*': 0.83; '*S*': 0.00; 'beginner': 0.05; 'output': 0.05; 'subject:file': 0.07; 'measure': 0.09; 'subject:txt': 0.16; 'subject:writing': 0.16; 'files.': 0.16; 'trying': 0.19; 'split': 0.19; 'seems': 0.21; '>>>': 0.22; 'typical': 0.24; "i've": 0.25; 'compare': 0.26; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'skip:( 20': 0.30; 'lines': 0.31; 'file': 0.32; 'to:name:python-list': 0.33; 'maybe': 0.34; 'subject:from': 0.34; 'problem': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'doubt': 0.36; 'thanks': 0.36; 'list': 0.37; 'list.': 0.37; 'jason': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'skip:u 10': 0.60; 'skip:2 20': 0.60; 'skip:* 40': 0.61; 'simple': 0.61; 'first': 0.61; 'show': 0.63; 'pick': 0.64; 'skip:1 20': 0.65; 'skip:r 40': 0.68; 'lack': 0.78; 'skip:1 50': 0.84; 'cutting': 0.91; 'wanting': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=W02uHSfFhEe1AhWnDKuEaX31Re7m6lLp7+D4bHyNrd0=; b=msThZVXwOf/Ax2Q5pA+TMOZSlmVsaqkhHY0WacYC7/ZqTE3FsSH3Y7F19cfNBK3fsi HbVbZRSaEsfbqOjjej2sxu/2T13VE9uLGgSn+iJI/alOPFh5aWLChfdkUsVaB5y+a3PY /sKAsCJyYkBAvBNaZvSYKSHZ8r6Sy786pyeZ8s8yTIIOvpKY+NyoLSkb0ejWvt23loDH vYiQYq3/HnhqP66hWbYkM5t+qM+Fsmdii0pd6rrDi0LB/zME3R7jcu15T6WEKc02bR0j MTrGUVkBJvnMC17TlL9NRM+R5De/Z329YzD5P3ewfQHh6QilnaXuGTsZoas5FyF7hx4a 2ApA==
MIME-Version 1.0
X-Received by 10.224.57.72 with SMTP id b8mr39372042qah.41.1396401950386; Tue, 01 Apr 2014 18:25:50 -0700 (PDT)
In-Reply-To <CA+8BrnQxV7B4qD21izytmywqakqseHDWEYYj4-0GXCQtCcPF8Q@mail.gmail.com>
References <9023eae9-f814-40ac-9b84-043214e6b28f@googlegroups.com> <CANy1k1j9=U8zOf9e=-acNtr4SnAGbznA4VrO1TqWE5j_XnKV_Q@mail.gmail.com> <CA+8BrnQxV7B4qD21izytmywqakqseHDWEYYj4-0GXCQtCcPF8Q@mail.gmail.com>
Date Tue, 1 Apr 2014 19:25:50 -0600
Subject Re: writing reading from a csv or txt file
From Jason Friedman <jsf80238@gmail.com>
To python-list <python-list@python.org>
Content-Type multipart/alternative; boundary=089e01493982376dcc04f6052a62
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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>
Newsgroups comp.lang.python
Message-ID <mailman.8809.1396401953.18130.python-list@python.org> (permalink)
Lines 79
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1396401953 news.xs4all.nl 2830 [2001:888:2000:d::a6]:58606
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:69528

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

>
> Hi jason thanks for replying.Below is a typical file return.To you I've no
> doubt this is a simple problem but,to a beginner like me it just seems I
> lack the understanding of how to split out the items in a list.Thanks again
> for looking at it.
> Rainfall,duration,TimeStart,windspeed,Date
> 0.1,5,05:25,3.1,03/02/2013
> 0.12,8,11:20,4.1,03/02/2013
> 0.1,2,18:05,2.8,03/02/2013
> 18,15,04:03,4.5,04/02/2013
> 2.3,6,17:02,2.4,04/02/2013
> ***********************************************
> Rainfall,duration,TimeStart,windspeed,Date
> 1.1,5,05:25,3.1,014/02/2012
> 1.32,8,14:20,4.1,14/02/2012
> 2.1,2,22:00,2.8,14/02/2012
> 18,15,03:30,4.5,18/02/2012
> 1.3,4,13:00,2.4,18/02/2012
>
>
> I am trying to compare the files. cutting out items in list list. ie:-
>>> first file (rainfall2012.csv)rainfall, duration,time of day,wind
>>> speed,date.
>>> first file (rainfall2013.csv)rainfall, duration,time of day,wind
>>> speed,date.
>>> I would like to pick out maybe rainfalls and duration's and measure
>>> against say years.
>>>
>>>
>> Ok, now show us the first few lines of the output you are wanting (please
remember to add you answer at the bottom, not the top).
Please also remember to reply-all.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

writing reading from a csv or txt file mtcplumb@googlemail.com - 2014-03-30 12:05 -0700
  Re: writing reading from a csv or txt file Jason Friedman <jsf80238@gmail.com> - 2014-03-30 14:19 -0600
  RE: writing reading from a csv or txt file "Joseph L. Casale" <jcasale@activenetwerx.com> - 2014-03-30 20:21 +0000
  Re: writing reading from a csv or txt file Gary Herron <gary.herron@islandtraining.com> - 2014-03-30 13:26 -0700
  Re: writing reading from a csv or txt file Jason Friedman <jsf80238@gmail.com> - 2014-04-01 19:25 -0600

csiph-web