How to Solve NameError: name 'reader' is not defined -- csv

Solution: Import the 'reader' module

To Solve the error, add the following line to the top of your code.

from csv import reader

 

For more information:
Python csv reader