Tabra is a Python toolkit for empirical research workflows, designed for data processing, model estimation, result export, and reproducible analysis.
Project description
Tabra
Tabra is a Python toolkit for empirical research workflows, designed for data processing, model estimation, result export, and reproducible analysis.
Quickly Start
uv pip install git+https://github.com/sepinetam/tabra.git
import pandas as pd
from tabra import load_data
from tabra.plot import PlotKind
from tabra.plot.template import AER
tab = load_data(pd.read_stata(
"https://www.stata-press.com/data/r19/auto.dta",
convert_categoricals=False,
storage_options={"User-Agent": "Mozilla/5.0"}
))
tab.data.sum()
tab.data.gen("p__sq", "price ^ 2")
tab.plot.hist(
"p__sq",
bins=20,
title="Price Distribution"
).save(".local/figs/demo_hist_of_price_square", formats=["png", "jpg"])
mix_figure = tab.plot.mix(
[
{PlotKind.scatter: {"x": "mpg", "y": "price"}},
{PlotKind.lfitci: {"x": "mpg", "y": "price"}},
],
title="Price vs. Mpg",
xtitle="mpg",
ytitle="price and price^2",
template=AER
).show()
tab.reg("price", ["mpg", "weight"])
tab.plot.coefplot().save(".local/figs/demo_coefplot", formats=["pdf"])
tab.xtset("foreign")
tab.xtreg("price", ["mpg", "weight"], model="fe")
Contributing
See CONTRIBUTING.md for the full development workflow.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tabra-0.1.0.tar.gz.
File metadata
- Download URL: tabra-0.1.0.tar.gz
- Upload date:
- Size: 91.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac2fcc7a23b2557bb5ddb72225d59cecaf212a06cf90156b992d7955b8c24693
|
|
| MD5 |
86d75c26f232c49f92fddace04a9709a
|
|
| BLAKE2b-256 |
38822da8957d01911c27de4e3d40da084a687a90495f07b8dfc1a82df7226cc7
|
File details
Details for the file tabra-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tabra-0.1.0-py3-none-any.whl
- Upload date:
- Size: 135.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6928bf4f892d2cc34b35ed33b1d53514a05433b1b84a6b2e01a935e62910dba7
|
|
| MD5 |
1c264d0852c27255fb1d22bb3ab1f68a
|
|
| BLAKE2b-256 |
03a78e6e2efc8cab48be296dc30ebb439a5bd8a378fa42872cda802dc930ce1c
|