Skip to main content

Streamlit dataframe display

alternative to st.table with configuration displaying Pandas DataFrame

PyPI - Version PyPI - License PyPI - Downloads PyPI - Implementation PyPI - Wheel PyPI - Format PyPI - Python Version

Installation instructions

pip install st-df-table

Usage instructions

import pandas as pd
from st_df_table import st_table

data = {
    "Column A": [1, 2, 3, 4, 5, 6],
    "Column C": [True, False, True, False, True, False],
    "Column B": ["A", "B", "C", "F", "G", "H"],
}

df = pd.DataFrame(data)
st_table(df)

table-1

st_table(
    df,
    head_align="left",
    data_align="left",
    head_bg_color="red",
    head_color="blue",
    head_font_weight="normal",
    border_color="red",
    border_width="3",
)

table-2

st_table(
    df,
    head_align="right",
    data_align="right",
    data_bg_color="green",
    data_color="yellow",
    data_font_weight="bold",
    bordered=False,
    sortable=False,
)

table-3

import string
import numpy as np
import pandas as pd
from st_df_table import st_table

df = pd.DataFrame(
    {
        "Column A": list(range(1, 101)),
        "Column B": np.random.choice(list(string.ascii_uppercase), size=100),
        "Column C": np.random.rand(100),
    }
)

st_table(
    df,
    border_width=4,
    border_color="red",
    paginated=True,
    pagination_size_per_page=7,
    pagination_bar_size=4,
    pagination_text_color="blue",
    pagination_bg_color="yellow",
    pagination_border_color="green",
    pagination_active_color="yellow",
)

table-4

Cloud example

https://mysiar-org-st-table-st-df.streamlit.app/

Metadata

Release files for st-df-table 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for st-df-table 0.0.9
File Size Uploaded
st_df_table-0.0.9.tar.gz 676.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for st-df-table 0.0.9
File Interpreter ABI Platform
st_df_table-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 1.4 MB

Release files / st_df_table-0.0.9.tar.gz

Download URL st_df_table-0.0.9.tar.gz
Size 676.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2b0018db80a28bcdaab3d3e725aab09b2dd267430d5e7f2cb68f11fcb9d54d37
BLAKE2b-256 checksum
How to use checksums
cf034a95cb4cea77018928a12c8f5f0ed67b50490fca8f5d91bc419563a1f399
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release files / st_df_table-0.0.9-py3-none-any.whl

Download URL st_df_table-0.0.9-py3-none-any.whl
Size 682.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70f085abc053bac0365e57667145d414a997497b4bf990ffa12fe60598d920ca
BLAKE2b-256 checksum
How to use checksums
174662e7c46cfd5edd82ec0e0e1e31c5d277472f68cd285dcbecd8d8f3fbe274
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page