Pretty-print tabular data in Python, a library and a command-line utility. The main use cases of the library are: printing small tables without hassle: just one function call, formatting is guided by ...
tabulate is smart about column alignment. It detects columns which contain only numbers, and aligns them by a decimal point (or flushes them to the right if they appear to be integers). Text columns ...