On Jul 11, 2012, at 10:21 AM, tutor-requ...@python.org wrote: > > Message: 4 > Date: Wed, 11 Jul 2012 16:20:05 +0200 > From: susana moreno colomer <susana...@hotmail.com> > To: <tutor@python.org> > Subject: [Tutor] get columns from txt file > Message-ID: <bay164-w2886be3c3d5a8b0e3d496384...@phx.gbl> > Content-Type: text/plain; charset="iso-8859-1" > > > Hi! > > I have a group of files in a directory. > I want to extract from files whose names start with bb_ column number 5 > to an excel file. I have 6 bb_ files, therefore I want to get 6 columns > (5th column from each file) > This code is working,with the following errors: > > I get the data in only one column, instead of six > I get white cell after every extracted cell > > I've got help from > http://mail.python.org/pipermail/tutor/2004-November/033474.html, though it > is not working for me
If I understand your requirements correctly, you should read the followup message in that thread: http://mail.python.org/pipermail/tutor/2004-November/033475.html Primarily, you'll just have to alter one of the code samples to write it to csv. Take care, Don
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor