Registry / data / pantab

pantab

JSON →
library5.3.0pypypi✓ verified 82d ago

Pantab is a Python library that enables seamless conversion between pandas DataFrames and Tableau Hyper Extracts (.hyper files). It provides a high-performance way to get data into and out of Tableau's Hyper engine, which is used for data storage and querying within Tableau products. The current version is 5.3.0, and it generally follows a release cadence with minor versions every few months, often including bug fixes and Python version support updates.

pip install pantab
INSTALL
IMPORT
SIG · PANTAB
P
pantab
datapythonv5.3.0
Install
7.1s avg
Import
Disk
423MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.2.2 · 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.910 runs
build_error
glibc
py 3.103.910 runs
installs and imports cleanly · install 7.1s · import 0.000s · 427MB
423MB installed
● package 423MB
Code
Verified usage

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

frame_from_hyper
from pantab import frame_from_hyper
from pantab import to_hyper
frame_to_hyper
from pantab import frame_to_hyper
from pantab import to_hyper
frames_from_hyper
from pantab import frames_from_hyper
from pantab import to_hyper

This quickstart demonstrates how to create a pandas DataFrame, write it to a Tableau Hyper file using `pantab.to_hyper`, and then read it back into a DataFrame using `pantab.frame_from_hyper`. It includes cleanup to remove the generated Hyper file.

import pandas as pd import pantab as pt import os data = { 'col1': [1, 2, 3], 'col2': ['A', 'B', 'C'], 'col3': [True, False, True] } df = pd.DataFrame(data) hyper_file = 'my_data.hyper' table_name = 'MyTable' try: # Write DataFrame to Hyper file pt.to_hyper(df, hyper_file, table=table_name) print(f"DataFrame written to {hyper_file} successfully.") # Read DataFrame from Hyper file read_df = pt.frame_from_hyper(hyper_file, table=table_name) print(f"DataFrame read from {hyper_file} successfully:") print(read_df) finally: # Clean up the generated file if os.path.exists(hyper_file): os.remove(hyper_file) print(f"Cleaned up {hyper_file}.")
Debug
Known issues
breakingPantab v5.3.0 dropped support for Python 3.9 and 3.10. Users on these Python versions will need to upgrade to Python 3.11 or later to use the latest Pantab.
fix
Upgrade your Python environment to 3.11 or newer, or pin your pantab version to <5.3.0.
affects: >=5.3.0
breakingPantab relies on `tableauhyperapi`, which periodically updates its minimum required version. Older `tableauhyperapi` versions can lead to `RuntimeError` or `ValueError`.
fix
Ensure `tableauhyperapi` is updated to at least the minimum version required by your `pantab` installation. Running `pip install --upgrade pantab` usually resolves this by updating its dependencies.
affects: All versions, specifically 4.1.0+ and 5.0.0+
gotchaData type mapping between pandas and Hyper can have nuances. For instance, 8-bit integer columns in pandas will be stored as 16-bit integers in Hyper. Other types might also undergo conversions.
fix
Review `pantab` documentation for specific data type mappings to ensure your data integrity and expected column types in Tableau. Test conversions with representative datasets.
affects: All versions
gotchaHyper files are single-writer, single-reader. Concurrent access or insufficient file permissions can lead to errors, especially on network drives or shared environments.
fix
Ensure the process writing or reading the Hyper file has appropriate file system permissions. Avoid concurrent writes to the same Hyper file. Close file handlers properly if managing them manually (though `pantab` generally handles this).
affects: All versions
Upgrade
Version history
5.3.0latest on PyPI · released Apr 8, 2026
Audit
Dependencies
pandasrequiredCore data structure for conversion.
tableauhyperapirequiredUnderlying library for interacting with Tableau Hyper files.
Agent activity
8 hits · last 30 days
node
8
Resources
pantab — pip install pantab · libregistry