Streamlit dataframe display
alternative to st.table with configuration displaying Pandas DataFrame
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)
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",
)
st_table(
df,
head_align="right",
data_align="right",
data_bg_color="green",
data_color="yellow",
data_font_weight="bold",
bordered=False,
sortable=False,
)
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",
)
Cloud example
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)
| File | Size | Uploaded | |
|---|---|---|---|
| st_df_table-0.0.9.tar.gz | 676.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|