pandas-render
Render pandas or polars DataFrames and Series as HTML tables with flexibility for formatting and styling.
Installation
pip install "pandas-render[pandas]"
pip install "pandas-render[polars]"
Usage
This is a simple example that demonstrates the basic functionality. The column names are used to match individual Jinja2 templates. And {{ content }} is the placeholder for the content of the original cell.
from pandas_render import pandas as pd
df = pd.DataFrame(
[
dict(name="Alice", age=25, hobbies=["coding"]),
dict(name="Bob", age=30, hobbies=["reading", "hiking"]),
]
)
df.render(
templates=dict(
name="<strong>{{ content }}</strong>",
age="{{ content }} years old",
hobbies="<em>{{ content|join(', ') }}</em>",
),
table_column_names=["Name", "Age", "Hobbies"],
)
The result is a rendered dataframe:
| Name | Age | Hobbies |
|---|---|---|
| Alice | 25 years old | coding |
| Bob | 30 years old | reading, hiking |
Examples
Exciting and more powerful features can be explored and learned in the Getting Started notebook.
List of all notebooks with examples:
Support
Do you like this project? Fuel it with a ☕ coffee on Ko-fi. Every little bit helps and means a lot!
Contributing
We encourage you to contribute to this project! Please check out the contributing guidelines about how to proceed.
License
This package is Open Source Software released under the BSD-3-Clause license.
Metadata
Release files for pandas-render 0.4.2
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 |
|---|---|---|---|---|
| pandas_render-0.4.2.tar.gz | 169.6 kB | Without provenance | Details for pandas_render-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pandas_render-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for pandas_render-0.4.2-py3-none-any.whl |
Total release size: 181.0 kB
Release files / pandas_render-0.4.2.tar.gz
| Download URL | pandas_render-0.4.2.tar.gz |
|---|---|
| Size | 169.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77c5be11aaeea6a6b8e3674ee85c80599232df38f4356eae38abcac5ac973cae
|
|
BLAKE2b-256 checksum How to use checksums |
b8f2ebb1757a25c65e36b9ef6b81ef0cb938a82b696ad1aeba1e9edcbc85fc7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.2 {"ci":true,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.11.18"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.9 29 Sep 2026","python":"3.11.18","system":{"name":"Linux","release":"7.0.0-1019-azure"}} HTTPX2/2.16.2
|
Release files / pandas_render-0.4.2-py3-none-any.whl
| Download URL | pandas_render-0.4.2-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e66c4cbb2dfebe4b7b39ebbb508ba8b0297c3293d7bf24711744f91f55babba4
|
|
BLAKE2b-256 checksum How to use checksums |
6c05fb326e808720faf8ce0a1ac2a4bcda19cce752b02de8d921b2a3b0ac6268
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.2 {"ci":true,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.11.18"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.9 29 Sep 2026","python":"3.11.18","system":{"name":"Linux","release":"7.0.0-1019-azure"}} HTTPX2/2.16.2
|
Security for pandas-render 0.4.2
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.