skip to navigation
skip to content

Not Logged In

csvcool 0.3.1

Cool way to deal with 'headed' CSV

Latest Version: 0.3.5

Cool way to deal with 'headed' CSV

Rules of the parser
1 - First row is a list of column names. 2 - All rows have the same numbers of columns. 3 - Empty column names are ignored. 4 - Columns without name are ignored.

Example:

name0 name1   name3  
v0   v2 v3 v4

Equivalent:

name0 name1 name3
v0   v2

Use:

>>> import csvcool
>>> cool = csvcool.read(open("path/to/csv"))
>>> cool[0]["name0"]
v0
>>> cool[0]["name0"] = 1
>>> cool[0]["name0"]
1
>>> csvcool.write(cool, open("path/to/csv", "w"))
 
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 0 downloads in the last week
  • 0 downloads in the last month