Last active
August 29, 2015 14:16
-
-
Save cyriac/cdd010f3401489d145fa to your computer and use it in GitHub Desktop.
csv_to_list_of_dict
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
import csv | |
mrows = [] | |
# Creates list of dict from csv | |
with open('final.csv', mode='r') as infile: | |
reader = csv.DictReader(infile) | |
for row in reader: | |
mrows.append(row) | |
header = row.keys() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment