Created
April 25, 2016 22:12
-
-
Save thisismattmiller/736f4dc24ee5fd3eb30acd90b6816b20 to your computer and use it in GitHub Desktop.
This file contains 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 | |
#ask the CSV file to be opened | |
csv_file = csv.reader(open("Art Donahue data set - Sheet1.csv"), delimiter=",") | |
#skip the header | |
next(csv_file, None) | |
#loop over each line and read each field | |
for a_row in csv_file: | |
box = a_row[0] | |
format = a_row[1] | |
label = a_row[2] | |
date = a_row[3] | |
notes = a_row[4] | |
collection = a_row[5] | |
accession = a_row[6] | |
location = a_row[7] | |
added_uri = a_row[8] | |
print (box,format,label,date,notes,collection,accession,location,added_uri) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment