Skip to main content

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

Download files

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

Files for icsv, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size icsv-0.1.6.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page