Skip to content

Instantly share code, notes, and snippets.

@martincox
Created February 16, 2015 11:29
Show Gist options
  • Save martincox/0d67dfb1ab3c7403506e to your computer and use it in GitHub Desktop.
Save martincox/0d67dfb1ab3c7403506e to your computer and use it in GitHub Desktop.
Iterate DictReader
import csv
with open('file.csv') as input:
lines = csv.DictReader(input, delimiter='\t')
for line in lines:
print line['FC']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment