A simple script to make operating csv files easier
Project description
A simple python package to make reading csv files easier. This package uses the built-in csv module in the backend but produces a dict object with the csv file’s column headings as keys and the column’s data as a list for easy manipulation.
If you are familier with the pandas.read_csv function. This returns something like that.
Usage
`python >>>from icsv.icsv import reader >>>df = reader.read('path/to/csv') >>>df.keys() dict_keys(['key1','key2','key3']) >>>df['key1'] [1,2,3,4,5] >>>df['key1'][1] = 7 >>>df['key1'] [1,7,3,4,5] ` Quite simple really and intentionally so. Basically, after using the read command, you have a normal python dictionery, which means everything you can do with dicts you can do with the result of read. And everything you can do with lists, you can do with the result of df[key]
Project details
Release history Release notifications | RSS feed
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 icsv-0.1.6.tar.gz
.
File metadata
- Download URL: icsv-0.1.6.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a78b26982f17d86049c572e7ad5eb38a1c2fb09fae46669d8dd6775e21449e93 |
|
MD5 | ee9f62bf5cbdc6ed0b04fffc125945ca |
|
BLAKE2b-256 | 0f2c58f486520037e9261093636f44a56d059ac5fd3e4292b219b3c34a46bebc |