Skip to main content

Statstables

A Python package for making nice LaTeX, HTML, and ASCII text tables.

This package is inspired by the stargazer Python package (and by extension the stargazer R package that inspired that). statstables can be used to render output from a number of natively supported models (those in the statsmodels and linearmodels packages), while giving users the ability to easily implement custom renderers for models not currently supported. It can also be used to create just about any other table you may need in a research project.

The goal of statstables is to allow you to think as much or as little as you'd like about about the tables you're creating. If you want to use all the defaults and get a presentable table, you can. If you want control over all the details, down to how individual cells are formatted, you can do that too. All of this is done without changing the underlying object containing the data, whether that's a Pandas DataFrame or fitted model.

Examples of how to use statstables can be found in the sample notebook. See main.tex and main.pdf to see what the tables look like rendered in LaTeX. you will need to include \usepackage{booktabs} in the preamble to your TeX file for it to compile.

Installation

To install the latest release, use

pip install statstables

Or you can clone this repo to use the latest changes.

Metadata

Release files for statstables 0.0.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for statstables 0.0.20
File Size Uploaded Provenance Actions
statstables-0.0.20.tar.gz 71.1 kB With provenance Details for statstables-0.0.20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for statstables 0.0.20
File Interpreter ABI Platform Actions
statstables-0.0.20-py3-none-any.whl Python 3 none any Details for statstables-0.0.20-py3-none-any.whl

Total release size: 132.4 kB

Release files / statstables-0.0.20.tar.gz

Download URL statstables-0.0.20.tar.gz
Size 71.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ff07d6c85b099bec8529cf9fc353a42af258839db9feb8a5b08ab40e04ffd8ad
BLAKE2b-256 checksum
How to use checksums
0ca7ecbec0a463e73a83c7392f04bbdd27a7517e376a9c747e9f545e40bb85bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / statstables-0.0.20-py3-none-any.whl

Download URL statstables-0.0.20-py3-none-any.whl
Size 61.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26ed1200aff13413b2b6a7246cab18b319e657249c1f0ef006c081939646d78d
BLAKE2b-256 checksum
How to use checksums
cfeb0643ee411a7d06b3bb6c6a0b8672c80820cd15626e2cd531b8794cd3ef3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for statstables 0.0.20

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for statstables-0.0.20.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page