# tabulate

> Pretty-print tabular data in Python as text, Markdown, LaTeX or HTML tables

Source: https://talira.ai/catalog/tabulate-7gdzr1wq
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [libraries / text / pretty printing](https://talira.ai/categories/libraries/text/pretty-printing)
- Platforms: linux, macos, windows[^3]
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Sergey Astanin](https://talira.ai/orgs/sergey-astanin.md)

tabulate is a Python library and command-line utility that prints tabular data as readable tables with one function call. It takes lists of lists, dicts, NumPy arrays or pandas DataFrames, lines columns up by the data (numbers by their decimal point) and writes them in dozens of formats: plain text grids, GitHub and pipe Markdown, reStructuredText, Org tables, MediaWiki, Jira, LaTeX, HTML and TSV, among others. Installing it with pip also installs the tabulate command, which formats a file or standard input the same way. With the optional wcwidth library it lines up wide (East Asian) characters correctly.

## Links

- GitHub: https://github.com/astanin/python-tabulate

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/python-tabulate>[^1]

## Problems it solves

- print a list of rows as a neat aligned table in my Python script
- turn Python data into a Markdown or LaTeX table I can paste into docs
- show a pandas DataFrame or query results as a readable plain-text table

## Features

- One tabulate() call turns rows and headers into a formatted table
- Dozens of output formats, including grid, GitHub Markdown, pipe, rst, orgtbl, MediaWiki, Jira, LaTeX and HTML
- Aligns numbers by their decimal point and formats them with configurable number formats
- Accepts lists, dicts, NumPy arrays and pandas DataFrames
- A tabulate command-line utility that formats files or standard input
- Wide-character alignment with the optional wcwidth library

## Trust

Overall: 0.40 out of 1.
Signals: maintenance 0.27, adoption 0.68, momentum 0.45, community 0.81, backing 0.30, extensibility 0.00.

- 2.6k GitHub stars
- 108 contributors
- 43 Homebrew installs in 30 days
- backed by Sergey Astanin

Warnings:

- last commit 8 months ago

## Alternatives

- [PrettyTable](https://talira.ai/catalog/prettytable-cz49bkn6.md): Print tables of data as ASCII art in Python

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 28 Nov 2026)
[^2]: https://github.com/astanin/python-tabulate/blob/master/LICENSE (checked 28 Nov 2026)
[^3]: https://github.com/astanin/python-tabulate/blob/master/README.md (checked 28 Nov 2026)
