How can I remove NULL bytes using DictReader method? The following code produce error as Error: line contains NULL byte
with open('excelfile.csv', 'r', encoding="ISO-8859-1") as file:
reader = csv.DictReader(file, fieldnames=('BANK','IFSC', 'BRANCH', 'ADDRESS'))
for row in reader:
frame = {'bank': row['BANK'], 'ifsc': row['IFSC'], 'branch': row['BRANCH'], 'address': row['ADDRESS'] }
framelist.append(frame)