Skip to main content

A package for making custom LaTeX, HTML, and ASCII statistical tables

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

statstables-0.0.13.tar.gz (56.2 kB view details)

Uploaded Source

Built Distribution

statstables-0.0.13-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

File details

Details for the file statstables-0.0.13.tar.gz.

File metadata

  • Download URL: statstables-0.0.13.tar.gz
  • Upload date:
  • Size: 56.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for statstables-0.0.13.tar.gz
Algorithm Hash digest
SHA256 f64d930ddf17829572de438196e9fe56669cec103ed22b2cf0fe3896ab257b90
MD5 5b94fb48afafd3cf6e87ae2272ec6970
BLAKE2b-256 07b6b9887c131b0338b52a19871601f60f0db8015e60f8ea564ac0eac26dd9d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for statstables-0.0.13.tar.gz:

Publisher: publish-to-test-pypi.yml on andersonfrailey/statstables

Attestations:

File details

Details for the file statstables-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: statstables-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 45.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for statstables-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 f67da458662b2e99d6328d835371efa74fd7501e4e77607abfef25fbe1db9a61
MD5 e704a9eb0a1eec0479403baef913bc79
BLAKE2b-256 2660a0fbf75b4b21611cd60424a89b813cbc2d9190b8b5e0d90fd18b03914d45

See more details on using hashes here.

Provenance

The following attestation bundles were made for statstables-0.0.13-py3-none-any.whl:

Publisher: publish-to-test-pypi.yml on andersonfrailey/statstables

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page