This short course teaches how to read and write data to CSV files using Python’s built in
csv module and the
pandas library. You’ll learn how to handle standard and non-standard data such as CSV files without headers, or files containing delimiters in the data.
At the end of the course there will be an optional quiz to check your learning progress.
Dave Wilson on Feb. 23, 2020
Such a great tutorial, Joe - as always!
I’m not sure why, but my csv’s printed rows on every other line. I was able to fix it by adding a lineterminator to the employee_writer definition:
employee_writer = csv.DictWriter(employee_file, fieldnames=fieldnames, lineterminator = '\n')