Created
September 25, 2015 13:47
-
-
Save johnccfm/66b2673917e116c424d4 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
{'Third': '3', 'Second': '2', 'First': '1'} | |
{'Third': '6', 'Second': '5', 'First': '4'} | |
{'Third': '915,as', 'Second': '23', 'First': 'Foo'} | |
1 | |
4 | |
Foo |
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
First | Second | Third | |
---|---|---|---|
1 | 2 | 3 | |
4 | 5 | 6 | |
Foo | 23 | 915,as |
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 | |
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