Alternative to `st.table` with configuration displaying Pandas DataFrame
Project description
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
Project details
Release history Release notifications | RSS feed
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.9.tar.gz
(676.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
st_df_table-0.0.9-py3-none-any.whl
(682.0 kB
view details)
File details
Details for the file st_df_table-0.0.9.tar.gz.
File metadata
- Download URL: st_df_table-0.0.9.tar.gz
- Upload date:
- Size: 676.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b0018db80a28bcdaab3d3e725aab09b2dd267430d5e7f2cb68f11fcb9d54d37
|
|
| MD5 |
3c4c44f63b879f80b04042b589e61e90
|
|
| BLAKE2b-256 |
cf034a95cb4cea77018928a12c8f5f0ed67b50490fca8f5d91bc419563a1f399
|
File details
Details for the file st_df_table-0.0.9-py3-none-any.whl.
File metadata
- Download URL: st_df_table-0.0.9-py3-none-any.whl
- Upload date:
- Size: 682.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70f085abc053bac0365e57667145d414a997497b4bf990ffa12fe60598d920ca
|
|
| MD5 |
a2fe6bae06951359fed4d2c8ac617461
|
|
| BLAKE2b-256 |
174662e7c46cfd5edd82ec0e0e1e31c5d277472f68cd285dcbecd8d8f3fbe274
|