Skip to content

Instantly share code, notes, and snippets.

@johnccfm
Created September 25, 2015 13:47
Show Gist options
  • Save johnccfm/66b2673917e116c424d4 to your computer and use it in GitHub Desktop.
Save johnccfm/66b2673917e116c424d4 to your computer and use it in GitHub Desktop.
{'Third': '3', 'Second': '2', 'First': '1'}
{'Third': '6', 'Second': '5', 'First': '4'}
{'Third': '915,as', 'Second': '23', 'First': 'Foo'}
1
4
Foo
First Second Third
1 2 3
4 5 6
Foo 23 915,as
import csv
in_file = open("test2.csv","r")
rdr = csv.DictReader(in_file)
for row in rdr:
print(row)
in_file.close()
in_file = open("test2.csv","r")
rdr = csv.DictReader(in_file)
for row in rdr:
print(row['First'])
in_file.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment