Mickael's Miscellaneous Python Helpers and Utility Functions.
Usage
Typst Regression Tables
Generate publication-ready Typst regression tables directly from statsmodels results:
import statsmodels.formula.api as smf
from mmisc import make_table
model1 = smf.ols("y ~ x1", data=df).fit()
model2 = smf.ols("y ~ x1 + x2", data=df).fit()
# Return Typst markup string
typst_code = make_table(
[model1, model2],
model_names=["Baseline", "Full"],
dep_var="Outcome",
var_labels={"x1": "Feature 1", "x2": "Feature 2"},
stats=("nobs", "r2", "aic"),
)
# Or write directly to file
make_table([model1, model2], output_path="models.typ")
Publish to PyPI
dotenv run -- uv build
dotenv run -- uv publish
Release files for mmisc 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mmisc-0.1.4.tar.gz | 54.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mmisc-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 71.0 kB
Release files / mmisc-0.1.4.tar.gz
| Download URL | mmisc-0.1.4.tar.gz |
|---|---|
| Size | 54.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abddc36f7490398fed0ba60baa4b1fc6cf84aa6b774078585d0bcf07126db78d
|
|
BLAKE2b-256 checksum How to use checksums |
0fdce822443b9ea3671399c269209fd55b4dd06de10271386661b5d267cb01f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.12
|
Release files / mmisc-0.1.4-py3-none-any.whl
| Download URL | mmisc-0.1.4-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
744c7870f36b0226e0c54025fa2877ea87bdabf56d41518ed7387d20e01dfdf6
|
|
BLAKE2b-256 checksum How to use checksums |
eee806a7b1a7d7d6b51b24e53cbf0837f06b38a5a90bde2ad9cd4f488c298b5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.12
|