Skip to content

A Python package for making nice tables in HTML, LaTex, and ASCII text

License

Notifications You must be signed in to change notification settings

andersonfrailey/statstables

Repository files navigation

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.

About

A Python package for making nice tables in HTML, LaTex, and ASCII text

Resources

License

Stars

Watchers

Forks

Packages

No packages published