Some of the capabilities of the table 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)
Raw data
{
"_id": null,
"home_page": "http://github.com/eseraygun/python-table",
"name": "table",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Eser Ayg\u00fcn",
"author_email": "eser.aygun@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/71/d7/7db625e34fe20702c6c39553ae909b28dc5d4cf4ac9dd3a6da13866e27d0/table-0.0.4.tar.gz",
"platform": "UNKNOWN",
"description": "Some of the capabilities of the table library are shown below::\n\n from table import Table\n\n table = Table(\n [\"1\", \"2\", \"3\"] # row names,\n [\"a\", \"b\"] # column names,\n [[1, 2], # initial values\n [3, 4],\n [5, 6]]\n )\n\n print \"Whole table:\"\n print table\n\n print \"Just a cell:\"\n print table[\"1\", \"a\"]\n\n print \"A row:\"\n print table[\"2\", :]\n\n print \"A column:\"\n print table[:, \"b\"]\n\n print \"A range:\"\n print table[\"2\":, :]\n\nThe library also provides basic I/O capability for simple delimited files and standard CSV files::\n\n table1 = readTableFromDelimited(f)\n table2 = readTableFromCSV(f)\n",
"bugtrack_url": null,
"license": "BSD (2-clause)",
"summary": "Two-dimensional tables backed by Numpy with named rows and columns.",
"version": "0.0.4",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "71d77db625e34fe20702c6c39553ae909b28dc5d4cf4ac9dd3a6da13866e27d0",
"md5": "56734de520b1bb8730b255c1e8eaea65",
"sha256": "a1e965e26ee9b43eea25051571dd44152d670317ae1d0ff02c4456e12aea4cbc"
},
"downloads": -1,
"filename": "table-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "56734de520b1bb8730b255c1e8eaea65",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2649,
"upload_time": "2012-12-02T17:05:17",
"upload_time_iso_8601": "2012-12-02T17:05:17.799778Z",
"url": "https://files.pythonhosted.org/packages/71/d7/7db625e34fe20702c6c39553ae909b28dc5d4cf4ac9dd3a6da13866e27d0/table-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2012-12-02 17:05:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "eseraygun",
"github_project": "python-table",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "table"
}