Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to extract keys from dictreader python

>>> import csv
>>> with open('test.csv') as f:
    reader = csv.DictReader(f)
    print reader.fieldnames


['first_name', 'last_name', 'email', 'mobile']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #extract #keys #dictreader #python
ADD COMMENT
Topic
Name
9+5 =