Skip to content

Instantly share code, notes, and snippets.

Last active Jun 9, 2016
What would you like to do?
def csv_reader(file, header=False):
import csv
with open(file, "r") as f:
reader = csv.reader(f)
if header
for row in reader:
yield row
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment