[Tutor] CSV Ouptut concern...

Tim Golden mail at timgolden.me.uk
Thu Mar 17 13:00:00 CET 2011

On 17/03/2011 11:56, Dipo Elegbede wrote:
> i wrote a code for extracting information from a csv file into another
> csv file.
> it worked well but i have an immediate challenge i can't seem to fix.
> the new file that is created has an row and then an empty row and then a
> row all through the file. how can i make the empty rows not be part of
> the file.

Open the file in binary mode:

fh = open('stateparty2.csv','wb')


More information about the Tutor mailing list