Registry / serialization / tabulate

tabulate

JSON →
library0.10.0pypypi✓ verified 24d ago

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.

pip install tabulate
INSTALL
IMPORT
SIG · TABULATE
T
tabulate
serializationpythonv0.10.0
Install
1.7s avg
Import
144ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.10.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.152s · 18MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.136s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tabulate
from tabulate import tabulate
Ensure correct import path to access the 'tabulate' function

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'))
Debug
Known issues
breakingDropped Python 2 support in version 1.0.0
fix
Upgrade to Python 3.10 or later
affects: <=1.0.0
deprecatedThe 'Dataset.export' method is deprecated; use 'Dataset.export('format')' instead
fix
Update code to use the new export method syntax
affects: >=0.12.1
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tabulate'
The `tabulate` library has not been installed in the Python environment where the code is being executed.
fix
pip install tabulate
ValueError: Data must be a list of lists, list of dicts, or a dictionary of lists
The data provided to the `tabulate()` function does not match any of the expected input formats required by the library.
fix
Ensure your data is structured as a list of lists (for rows), a list of dictionaries (where keys are headers), or a dictionary of lists (where keys are headers and values are columns).
ValueError: Data and headers must have the same number of columns
The number of headers provided does not match the number of columns (elements in each row) in the data passed to `tabulate()`.
fix
Adjust the `headers` list or the data to ensure that the number of headers precisely corresponds to the number of columns in your data.
TypeError: 'dict' object is not iterable
A dictionary was directly passed as data to `tabulate()` which expects an iterable of rows (like a list or tuple), but a raw dictionary is not iterable in that context.
fix
Convert the dictionary into an iterable format `tabulate` can process, such as `my_dict.items()` for a two-column table (key, value), or transform it into a list of dictionaries for more complex structures.
Upgrade
Version history
0.10.0latest on PyPI · released Mar 4, 2026
Audit
Dependencies
pyyamlrequiredRequired for YAML export functionality
openpyxlrequiredRequired for Excel export functionality
Agent activity
25 hits · last 30 days
node
20
OpenAI (training)
1
Resources
tabulate — pip install tabulate · libregistry