eseraygun/python-table


Two-dimensional tables backed by Numpy with named rows and columns

License: BSD-2-Clause

Language: Python


Python Table Library

Two-dimensional tables backed by Numpy with named rows and columns.

Some of the capabilities of the library are shown below:

from table import Table

table = Table(
    ["1", "2", "3"] # row names,
    ["a", "b"]      # column names,
    [[1, 2],        # initial values
     [3, 4],
     [5, 6]]
)

print "Whole table:"
print table

print "Just a cell:"
print table["1", "a"]

print "A row:"
print table["2", :]

print "A column:"
print table[:, "b"]

print "A range:"
print table["2":, :]

The library also provides basic I/O capability for simple delimited files and standard CSV files:

table1 = readTableFromDelimited(f)
table2 = readTableFromCSV(f)

Project Statistics

Sourcerank 5
Repository Size 132 KB
Stars 2
Forks 2
Watchers 1
Open issues 0
Dependencies 0
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Eser Aygün

Packages Referencing this Repo

table
Two-dimensional tables backed by Numpy with named rows and columns.
Latest release 0.0.4 - Updated - 2 stars

Something wrong with this page? Make a suggestion

Last synced: 2018-03-25 03:37:02 UTC

Login to resync this repository