Nov 5, 2017

How to fix Python: name 'csv' is not defined

You need to
import csv
at the beginning of the file.