Created
February 9, 2013 10:40
-
-
Save Omer80/4744821 to your computer and use it in GitHub Desktop.
How can I read a csv file using csv.DictReader into a dict type variable?
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
def data_acquisition(file_name): | |
data = csv.DictReader(open(str(file_name)), fieldnames=None, restkey=None, restval=None, dialect='excel') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment