[Tutor] get columns from txt file
susana moreno colomer
susana_87 at hotmail.com
Fri Jul 13 08:36:27 CEST 2012
Hi!
I am trying this, but still I get 6 numbers per cell. The only one difference is that I get a comma between numbers instead an space.
I am opening the document also with excel
Many thanks,
Susana
Subject: Re: [Tutor] get columns from txt file
From: dfjennings at gmail.com
Date: Thu, 12 Jul 2012 12:14:38 -0400
CC: tutor at python.org
To: susana_87 at hotmail.com
On Jul 12, 2012, at 12:06 PM, susana moreno colomer wrote:
Hi!
This code is working fine!
The only one little thing is that the 6 columns appear together in one column, what means, in eac cell I get 6 numbers. How can I get tit in 6 excel columns?
Programming is hard, so don't feel bad that I'm having to tell you again to specify the dialect as "excel" or "excel-tab":
csv_out=csv.writer(open('out14.csv', 'wb'), dialect='excel')
Take care,
Don
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120713/865fb723/attachment.html>
More information about the Tutor
mailing list