[Tutor] get columns from txt file

Prasad, Ramit ramit.prasad at jpmorgan.com
Thu Jul 12 18:18:33 CEST 2012


>> 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')

The default dialect is excel but it is important to also open
the file using Excel as it may default to a text editor.

Ramit


Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423

--


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  


More information about the Tutor mailing list