Created
October 31, 2011 13:11
-
-
Save llimllib/1327455 to your computer and use it in GitHub Desktop.
Simple csv filtering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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