Skip to main content

Produce a csv.DictReader without specifying the column names

Project description

Make a csv.DictReader without specifying the column names.

import smart_csv_dictreader
# https://raw.githubusercontent.com/tlevine/comparing-wifi-usage/master/data/chicago.csv
chicago = smart_csv_dictreader.DictReader(open('chicago.csv'))
print(next(chicago))
{'CUMULATIVE NUMBER OF SESSIONS': '22263',
 'MONTH': 'January',
 'NUMBER OF SESSIONS': '22263',
 'YEAR': '2011'}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smart_csv_dictreader-0.0.2.tar.gz (1.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page