Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • Thanks @joeforker . I used the code and it removed the non-ascii chars but when I am using following code to read the file object reader_obj = csv.reader(x.replace('\0', '') for x in csvfile) rownum=0 for row in reader_obj: rownum += 1 if len(row) != 16: print rownum print row print len(row) csv reader not reading the file properly. Your code does answer my question though. BTW any other way to read the csv effectively? Commented Apr 7, 2016 at 18:34