Skip to content

Instantly share code, notes, and snippets.

@DylanDmitri
Created September 14, 2017 01:32
Show Gist options
  • Save DylanDmitri/f431699380ae85adc3524ebeb03ea4da to your computer and use it in GitHub Desktop.
Save DylanDmitri/f431699380ae85adc3524ebeb03ea4da to your computer and use it in GitHub Desktop.
>>> type(reader)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'reader' is not defined
>>> with open('hr_data.csv.csv', 'rU') as infile:
... reader = list(csv.DictReader(infile, delimiter=','))
...
>>> type(reader)
<class 'list'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment