csv writerow creates double spaced excel csv files

Discussion in 'Python' started by Michal Mikolajczyk, Feb 13, 2004.

  1. For some reason, when I write data to a csv file using the csv module of
    python 2.3 and then open it in excel, every row is double spaced. I want
    the csv file to have every row filled with data not every other row. Is
    there a way I can fix this. I am using csv.writerow(data) and
    csv.writerows(data) functions, both write rows every other row when I open
    it in excel.
    Example:
    1 asdflkjfa
    2
    3 fjsdkfjoijef
    4
    5 asdlfkjsdf

    Thanks in advance.
    Michael

    _________________________________________________________________
    Find great local high-speed Internet access value at the MSN High-Speed
    Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/
     
    Michal Mikolajczyk, Feb 13, 2004
    #1
    1. Advertisements

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,931
    Kevin Spencer
    Jun 9, 2004
  2. bad_knee
    Replies:
    2
    Views:
    711
    bad_knee
    Jul 14, 2003
  3. Thomas Weidenfeller

    Re: JTextArea text is double-spaced?

    Thomas Weidenfeller, Jul 16, 2003, in forum: Java
    Replies:
    2
    Views:
    606
    Thomas Weidenfeller
    Jul 17, 2003
  4. Karsten

    vertically spaced div's

    Karsten, Apr 14, 2005, in forum: HTML
    Replies:
    4
    Views:
    498
    Duncan Greenhill
    Apr 16, 2005
  5. Sydex
    Replies:
    12
    Views:
    7,157
    Victor Bazarov
    Feb 17, 2005
  6. kjm
    Replies:
    6
    Views:
    941
  7. Replies:
    5
    Views:
    1,060
    Juan T. Llibre
    Jan 26, 2007
  8. Icon Iconoclast
    Replies:
    3
    Views:
    528
    Hans Kesting
    Nov 10, 2008
Loading...