Niru Maheswaranathan 0327a911da Update README.md
2015-02-24 13:26:50 -08:00
2015-02-24 12:54:35 -08:00
2015-02-24 13:24:48 -08:00
2015-02-24 12:31:31 -08:00
2015-02-24 13:26:50 -08:00
2015-02-24 13:00:00 -08:00

tableprint

📋 pretty ASCII printing of tabular data in python 🐍

Example output

About

tableprint lets you easily print pretty ASCII formatted tables of data. Unlike other modules, you can print single rows of data at a time (useful for printing ongoing computation results). Also, tableprint is fast (minimal processing required) and is therefore relevant for printing updates during speed-intensive computations.

Installation

pip install tableprint

Usage

The tableprint.table() function takes in a matrix of data, a list of headers, and an optional dictionary of parameters. To print a dataset consisting of 10 rows of 3 different columns:

import tableprint
import numpy as np

data = np.random.randn(10,3)
headers = ['Column A', 'Column B', 'Column C']

tableprint.table(data, headers)

Dependencies

  • Python 2.7 or 3.3+

License

MIT. See LICENSE.md

Description
Pretty console printing 📋 of tabular data in python 🐍
Readme 485 KiB
Languages
Python 98.2%
Makefile 1.8%