Screenshot 2022-12-22 160356
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

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%