Skip to main content

streamlit-advanced-dataframe

Streamlit's st.dataframe with advanced features using TanStack Table.

Installation

pip install streamlit-advanced-dataframe

Usage

import pandas as pd
from streamlit_advanced_dataframe import advanced_dataframe

df = pd.DataFrame({
    "name": ["Alice", "Bob", "Charlie"],
    "age": [25, 30, 35],
    "city": ["Tokyo", "Osaka", "Kyoto"]
})

# Basic usage
advanced_dataframe(data=df, height=400, key="my_table")

# Single row selection
selected = advanced_dataframe(
    data=df,
    selection_mode="single-row",
    key="selectable_table"
)
if selected:
    st.write(f"Selected rows: {selected}")  # Returns list[int]

# Multi-row selection
selected = advanced_dataframe(
    data=df,
    selection_mode="multi-row",
    key="multi_selectable_table"
)
if selected:
    st.dataframe(df.iloc[selected])  # Show selected rows

# Filter columns
advanced_dataframe(
    data=df,
    filterable_columns=["name", "age", "city"],
    show_row_count=True,
    key="filterable_table"
)

# Header groups
advanced_dataframe(
    data=df,
    header_groups=[
        {"header": "Personal Info", "columns": ["name", "age"]},
        {"header": "Location", "columns": ["city"]}
    ],
    key="grouped_table"
)

# Column config (prefix/suffix)
df_sales = pd.DataFrame({
    "product": ["Product A", "Product B"],
    "price": [1000, 2000],
    "discount": [10, 20]
})
advanced_dataframe(
    data=df_sales,
    column_config={
        "price": {"prefix": "$"},
        "discount": {"suffix": "%"}
    },
    key="config_table"
)

Parameters

Parameter Type Default Description
data pd.DataFrame required DataFrame to display
height int 600 Table height in pixels
use_container_width bool False Use full container width
selection_mode "single-row" | "multi-row" | None None Row selection mode
filterable_columns list[str] | None None Columns to enable filtering
show_row_count bool False Show filtered row count
column_order list[str] | None None Columns to display (in order)
header_groups list[dict] | None None Header group configuration
expandable bool False Enable row expansion
sub_rows_key str "subRows" Key for sub-row data
show_summary bool True Show summary row
column_config dict[str, dict] | None None Per-column display config (prefix/suffix)
key str | None None Streamlit component key

Returns

list[int] - List of selected row indices (0-based). Returns an empty list [] when no rows are selected or selection_mode is None.

Metadata

Release files for streamlit-advanced-dataframe 0.1.0

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

Source distribution (sdist)

Source distribution for streamlit-advanced-dataframe 0.1.0
File Size Uploaded
streamlit_advanced_dataframe-0.1.0.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-advanced-dataframe 0.1.0
File Interpreter ABI Platform
streamlit_advanced_dataframe-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / streamlit_advanced_dataframe-0.1.0.tar.gz

Download URL streamlit_advanced_dataframe-0.1.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6941da152d3796be2a1db9ff83c20b8d8041780c96319e31f8bfc07734e259dc
BLAKE2b-256 checksum
How to use checksums
b15e6d6d11ed2784e9ccf8efcbe51ce048340595598cb532bd62702dee6d0894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 3, 2026.

Transparency log

Release files / streamlit_advanced_dataframe-0.1.0-py3-none-any.whl

Download URL streamlit_advanced_dataframe-0.1.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
165bcc6e272ca8a154a55675ada297b0681e03f9185d2738bcfdf10b661cf04e
BLAKE2b-256 checksum
How to use checksums
ee2b22b07840177249b854f5b9f00c1d376945850084acb0881a433a61d6b0e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

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