Blogger Template by Blogcrowds.

Introduction:

  • Simply ignoring NULL characters while reading CSV file.

Script:
def nonull(stream):
    for line in stream:
        yield line.replace('\x00', '')

reader = csv.reader(nonull(open(os.getcwd()+"/test.csv")), dialect='excel', delimiter='|')

0 Comments:

Post a Comment



Newer Post Older Post Home