Results 1 to 4 of 4

Thread: insert a row to a csv file

Threaded View

  1. #1
    Join Date
    Nov 2009

    [SOLVED][python] insert a row to a csv file

    I have list, and would like to insert it as the last row, in a csv file.

    w=csv.writer(open('mycsvfile','a'),dialect='excel' )
    and getting the following error,
    _csv.Error: Sequence expected,
    apparently my csv is destroyed by csv.write !
    Last edited by naarkhoo; July 31st, 2011 at 01:25 PM. Reason: parameter should be "a" otherwise, csv content will be removed

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts