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'}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file smart_csv_dictreader-0.0.2.tar.gz.
File metadata
- Download URL: smart_csv_dictreader-0.0.2.tar.gz
- Upload date:
- Size: 1.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
079a316d68a0e95c8bcd890c095f24652628d445de400c7a8a97cf6fcb7e4229
|
|
| MD5 |
6be030e88ca4d2afa78ec64161165bde
|
|
| BLAKE2b-256 |
c3ca009bd17ec31791d41289adb9c7cbee33cff259ece161ae4d3da121add65a
|