ample.util.printTable module

class Table[source]

Methods

format_num(num) Format a number according to given places.
get_max_width(table, index) Get the maximum width of the given column index
pprint_table(table) Prints out a table of data, padded for alignment @param table: The table to print.
format_num(num)[source]

Format a number according to given places. Adds commas, etc. Will truncate floats into ints!

get_max_width(table, index)[source]

Get the maximum width of the given column index

pprint_table(table)[source]

Prints out a table of data, padded for alignment @param table: The table to print. A list of lists. Each row must have the same number of columns.