Created
October 18, 2011 18:35
-
-
Save beauvais/1296261 to your computer and use it in GitHub Desktop.
CSV Chopping
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
csvFile = csv.reader(open('thing.csv', 'rU'), delimiter=',') | |
header = next(csvFile) | |
for row in csvFile: | |
devStatus = row[4] | |
address = row[14] | |
commercial = row[12] | |
comment = row[20] | |
industry = row[10] | |
print industry | |
#running, I get the last field for this, how can I run this on each line? | |
$ python thing.py | |
Technology |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment