Screenshot 2022 12 22

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

Leave a Reply

Discover more from CLINICALNEWS.ORG

Subscribe now to keep reading and get access to the full archive.

Continue reading