Re: csv writerow creates double spaced excel csv files

Discussion in 'Python' started by Skip Montanaro, Feb 13, 2004.

  1. 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
     
    Skip Montanaro, Feb 13, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VB Programmer

    HTML seems double-spaced

    VB Programmer, Jun 9, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    4,706
    Kevin Spencer
    Jun 9, 2004
  2. bad_knee
    Replies:
    0
    Views:
    541
    bad_knee
    Jul 13, 2003
  3. bad_knee
    Replies:
    2
    Views:
    568
    bad_knee
    Jul 14, 2003
  4. Sydex
    Replies:
    12
    Views:
    6,646
    Victor Bazarov
    Feb 17, 2005
  5. Michal Mikolajczyk
    Replies:
    0
    Views:
    690
    Michal Mikolajczyk
    Feb 13, 2004
Loading...

Share This Page