Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.043 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'that?': 0.05; 'subject:file': 0.07; 'measure': 0.09; 'question?': 0.09; 'python': 0.11; 'csv': 0.16; 'subject:txt': 0.16; 'subject:writing': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'module': 0.19; 'trying': 0.19; 'header:User-Agent:1': 0.23; 'received:emailsrvr.com': 0.24; 'compare': 0.26; 'received:(smtp server)': 0.26; 'header:In-Reply-To:1': 0.27; 'skip:( 20': 0.30; 'included': 0.31; 'gary': 0.31; 'file': 0.32; 'url:python': 0.33; 'maybe': 0.34; 'subject:from': 0.34; 'could': 0.34; 'there': 0.35; 'date.': 0.36; 'url:org': 0.36; 'list': 0.37; 'list.': 0.37; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'duration': 0.60; 'url:3': 0.61; 'first': 0.61; 'here:': 0.62; 'such': 0.63; 'pick': 0.64; 'book,': 0.68; 'received:108.166': 0.84; 'cutting': 0.91; 'received:108': 0.93 X-Virus-Scanned: OK Date: Sun, 30 Mar 2014 13:26:55 -0700 From: Gary Herron User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: writing reading from a csv or txt file References: <9023eae9-f814-40ac-9b84-043214e6b28f@googlegroups.com> In-Reply-To: <9023eae9-f814-40ac-9b84-043214e6b28f@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396211717 news.xs4all.nl 2840 [2001:888:2000:d::a6]:37274 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69396 On 03/30/2014 12:05 PM, mtcplumb@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