Tabulate

0.10.0 · active · verified Sat Mar 28

Tabulate is a Python library for pretty-printing tabular data. The current version is 0.10.0, released three weeks ago. It is actively maintained and supports Python versions 3.10 and above. The release cadence is approximately every few weeks.

Warnings

Install

Imports

Quickstart

A simple example demonstrating how to use the 'tabulate' function to print a table with headers and grid formatting.

import os
from tabulate import tabulate

data = [['Name', 'Age'], ['Alice', 30], ['Bob', 25]]
print(tabulate(data, headers='firstrow', tablefmt='grid'))

view raw JSON →