Skip to content

Instantly share code, notes, and snippets.

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