Skip to main content

Alternative to `st.table` with configuration displaying Pandas DataFrame

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

st_df_table-0.0.2.tar.gz (644.8 kB view details)

Uploaded Source

Built Distribution

st_df_table-0.0.2-py3-none-any.whl (650.4 kB view details)

Uploaded Python 3

File details

Details for the file st_df_table-0.0.2.tar.gz.

File metadata

  • Download URL: st_df_table-0.0.2.tar.gz
  • Upload date:
  • Size: 644.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for st_df_table-0.0.2.tar.gz
Algorithm Hash digest
SHA256 dc1bdddfbaebd4307d993be22e7ad868907c867fd46e0d4a7f6a8cf5aa2c1c41
MD5 7fd270812ed31a67591c038e4dd9991c
BLAKE2b-256 84688453b2f8ad4b9072416e50dc41c940ab0e56c211b22e1e0173d3dd4bc0d2

See more details on using hashes here.

File details

Details for the file st_df_table-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: st_df_table-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 650.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for st_df_table-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ca3124f0c13214572acd535ea0abf7718ae80cfa94aff305f8e9729ee5efa677
MD5 e0f74eaa54e27b20c6392af3ef9efac3
BLAKE2b-256 83a0b9cea83ca804cbc654a829f8f045edf1a8f7a27d718a9b41da6bb2699e12

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page