writing reading from a csv or txt file

Gary Herron gary.herron at islandtraining.com
Sun Mar 30 16:26:55 EDT 2014


On 03/30/2014 12:05 PM, mtcplumb at googlemail.com wrote:
> Hi I have 3 csv files with a list of 5 items in each.
> rainfall in mm, duration time,time of day,wind speed, date.
> 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.
> I would like to very the items from the rows.
> could you please advise me where i can find such information. or book, textbook.
>

How is this a Python question?

There is a standard  module included with Python for reading CSV files.  
Would you like to know how to use that?  You can find documentation on 
it here:
     http://docs.python.org/3/library/csv.html

Gary Herron



More information about the Python-list mailing list