writing reading from a csv or txt file

Jason Friedman jsf80238 at gmail.com
Tue Apr 1 21:25:50 EDT 2014


>
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140401/fb4ad1b0/attachment.html>


More information about the Python-list mailing list