Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: csv writerow creates double spaced excel csv files

Reply
Thread Tools

Re: csv writerow creates double spaced excel csv files

 
 
Skip Montanaro
Guest
Posts: n/a
 
      02-13-2004

Michael> For some reason, when I write data to a csv file using the csv
Michael> module of python 2.3 and then open it in excel, every row is
Michael> double spaced. I want the csv file to have every row filled
Michael> with data not every other row. Is there a way I can fix this.

Make sure you open the output file with the 'b'inary flag. The csv writer
class takes care of line termination.

Skip

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot convert parameter from 'double (double)' to 'double (__cdecl *)(double)' error Sydex C++ 12 02-17-2005 06:30 PM
HTML seems double-spaced VB Programmer ASP .Net 4 06-09-2004 05:32 PM
csv writerow creates double spaced excel csv files Michal Mikolajczyk Python 0 02-13-2004 08:38 PM
Re: JTextArea text is double-spaced? bad_knee Java 2 07-14-2003 05:23 PM
Re: JTextArea text is double-spaced? bad_knee Java 0 07-13-2003 10:24 PM



Advertisments