Read Time:42 Second
Just a workaround using the csv module. The error usually results from the cell having an = sign preceding a string. The CDC VAERS DATA base is the example we used here. As 2021 is riddled with these errors.
import csv
with open(“2022VAERSData.csv”, mode=”r”) as old_file:
reader_obj = csv.reader(old_file)
with open(“2022VAERSDataX.csv”, mode=”w”) as new_file:
writer_obj = csv.writer(new_file, delimiter=”,”)
for data in reader_obj:
writer_obj.writerow(data)
#EOF #CSV #PYTHON
End of file error. Tokenize, EOF, csv, pandas, data frame, import, Error tokenizing data, python, data, import, vaers, vaers data, cdc
You must log in to post a comment.