tabla
Generate LaTeX tables in Python from your data in a pandas.DataFrame.
Example
All you need is a dataframe you'd like to create a table for, and a list of
TableColumns for each column in the dataframe you would like to include in
your table.
import pandas as pd
from tabla import TableColumn, Table
columns = [
TableColumn("date", "", "%Y-%m-%d", "Date"),
TableColumn("temp", "(degrees)", "{:0.2}", "Temperature"),
TableColumn("rate", r"(m day\textsuperscript{-1})", "{:04.3}", "Rate"),
]
dates = pd.date_range("2020-01-01", "2020-01-02", freq="6H")
data = list()
for date in dates:
d = {"date":date}
d.update({c: pd.np.random.random() for c in ["temp", "rate"]})
data.append(d)
df = pd.DataFrame(data)
table = Table("test_name", columns, dataframe, header_units=True)
# Generate as a string
latex_str = table.dumps()
Metadata
Release files for tabla 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tabla-0.0.1.tar.gz | 5.6 kB | Without provenance | Details for tabla-0.0.1.tar.gz |
Release files / tabla-0.0.1.tar.gz
| Download URL | tabla-0.0.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fed17ab07408a008bbf1774a3927b995d1da530964db9d344937adfca21f7e8d
|
|
BLAKE2b-256 checksum How to use checksums |
27aaacdc8dfae912a799c276ae69ba784e31ba2ef77b111cf18fbc386f977b8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8
|
Security for tabla 0.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.