Skip to content

Instantly share code, notes, and snippets.

@llimllib
Created October 31, 2011 13:11
Show Gist options
  • Save llimllib/1327455 to your computer and use it in GitHub Desktop.
Save llimllib/1327455 to your computer and use it in GitHub Desktop.
Simple csv filtering
import csv
goodrows = []
with open('stateplane.csv', 'rb') as f:
reader = csv.reader(f)
for row in reader:
if row[1] == 'HAWAII':
goodrows.append(row)
print row
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment