Skip to content

Instantly share code, notes, and snippets.

@navicore
Created May 26, 2014 02:38
Show Gist options
  • Save navicore/477ebcea1007fa53cc41 to your computer and use it in GitHub Desktop.
Save navicore/477ebcea1007fa53cc41 to your computer and use it in GitHub Desktop.
csv with python
#!/usr/bin/env python
import csv
with open('filename.csv', 'rb') as f:
reader = csv.reader(f)
for row in reader:
print "%s --- %s" % (row[0], row[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment