Created
January 28, 2016 18:31
-
-
Save robballou/c8377560cbe6fe814b14 to your computer and use it in GitHub Desktop.
Output the CSV header row items
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
#!/usr/bin/env python | |
import csv | |
with open('example.csv', 'rb') as original_file: | |
data = csv.reader(original_file) | |
for row in data: | |
for item in row: | |
print "%s" % item | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment