st-df-table


Namest-df-table JSON
Version 0.0.9 PyPI version JSON
download
home_pagehttps://github.com/mysiar-org/st-table
SummaryAlternative to `st.table` with configuration displaying Pandas DataFrame
upload_time2024-11-03 16:21:34
maintainerNone
docs_urlNone
authorPiotr Synowiec
requires_python>=3.7
licenseMIT
keywords streamlit streamlit-component
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Streamlit dataframe display
alternative to `st.table` with configuration displaying Pandas DataFrame


![PyPI - Version](https://img.shields.io/pypi/v/st-df-table)
![PyPI - License](https://img.shields.io/pypi/l/st-df-table)
![PyPI - Downloads](https://img.shields.io/pypi/dm/st-df-table)
![PyPI - Implementation](https://img.shields.io/pypi/implementation/st-df-table)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/st-df-table)
![PyPI - Format](https://img.shields.io/pypi/format/st-df-table)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/st-df-table)

## Installation instructions

```sh
pip install st-df-table
```

## Usage instructions

```python

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](https://raw.githubusercontent.com/mysiar-org/st-table/refs/heads/master/doc/table1.png)

```python
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](https://raw.githubusercontent.com/mysiar-org/st-table/refs/heads/master/doc/table2.png)

```python
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](https://raw.githubusercontent.com/mysiar-org/st-table/refs/heads/master/doc/table3.png)

```python
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](https://raw.githubusercontent.com/mysiar-org/st-table/refs/heads/master/doc/table4.png)

## Cloud example
[https://mysiar-org-st-table-st-df.streamlit.app/](https://mysiar-org-st-table-st-df.streamlit.app/)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mysiar-org/st-table",
    "name": "st-df-table",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "streamlit, streamlit-component",
    "author": "Piotr Synowiec",
    "author_email": "psynowiec@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/cf/03/4a95cb4cea77018928a12c8f5f0ed67b50490fca8f5d91bc419563a1f399/st_df_table-0.0.9.tar.gz",
    "platform": null,
    "description": "# Streamlit dataframe display\nalternative to `st.table` with configuration displaying Pandas DataFrame\n\n\n![PyPI - Version](https://img.shields.io/pypi/v/st-df-table)\n![PyPI - License](https://img.shields.io/pypi/l/st-df-table)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/st-df-table)\n![PyPI - Implementation](https://img.shields.io/pypi/implementation/st-df-table)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/st-df-table)\n![PyPI - Format](https://img.shields.io/pypi/format/st-df-table)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/st-df-table)\n\n## Installation instructions\n\n```sh\npip install st-df-table\n```\n\n## Usage instructions\n\n```python\n\nimport pandas as pd\nfrom st_df_table import st_table\n\ndata = {\n    \"Column A\": [1, 2, 3, 4, 5, 6],\n    \"Column C\": [True, False, True, False, True, False],\n    \"Column B\": [\"A\", \"B\", \"C\", \"F\", \"G\", \"H\"],\n}\n\ndf = pd.DataFrame(data)\nst_table(df)\n\n```\n![table-1](https://raw.githubusercontent.com/mysiar-org/st-table/refs/heads/master/doc/table1.png)\n\n```python\nst_table(\n    df,\n    head_align=\"left\",\n    data_align=\"left\",\n    head_bg_color=\"red\",\n    head_color=\"blue\",\n    head_font_weight=\"normal\",\n    border_color=\"red\",\n    border_width=\"3\",\n)\n```\n![table-2](https://raw.githubusercontent.com/mysiar-org/st-table/refs/heads/master/doc/table2.png)\n\n```python\nst_table(\n    df,\n    head_align=\"right\",\n    data_align=\"right\",\n    data_bg_color=\"green\",\n    data_color=\"yellow\",\n    data_font_weight=\"bold\",\n    bordered=False,\n    sortable=False,\n)\n```\n![table-3](https://raw.githubusercontent.com/mysiar-org/st-table/refs/heads/master/doc/table3.png)\n\n```python\nimport string\nimport numpy as np\nimport pandas as pd\nfrom st_df_table import st_table\n\ndf = pd.DataFrame(\n    {\n        \"Column A\": list(range(1, 101)),\n        \"Column B\": np.random.choice(list(string.ascii_uppercase), size=100),\n        \"Column C\": np.random.rand(100),\n    }\n)\n\nst_table(\n    df,\n    border_width=4,\n    border_color=\"red\",\n    paginated=True,\n    pagination_size_per_page=7,\n    pagination_bar_size=4,\n    pagination_text_color=\"blue\",\n    pagination_bg_color=\"yellow\",\n    pagination_border_color=\"green\",\n    pagination_active_color=\"yellow\",\n)\n\n```\n![table-4](https://raw.githubusercontent.com/mysiar-org/st-table/refs/heads/master/doc/table4.png)\n\n## Cloud example\n[https://mysiar-org-st-table-st-df.streamlit.app/](https://mysiar-org-st-table-st-df.streamlit.app/)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Alternative to `st.table` with configuration displaying Pandas DataFrame",
    "version": "0.0.9",
    "project_urls": {
        "Changelog": "https://github.com/mysiar-org/st-table/blob/master/CHANGELOG.md",
        "Documentation": "https://mysiar-org.github.io/st-df-table",
        "Examples": "https://mysiar-org-st-table-st-df.streamlit.app",
        "Homepage": "https://github.com/mysiar-org/st-table",
        "Issues": "https://github.com/mysiar-org/st-table/issues"
    },
    "split_keywords": [
        "streamlit",
        " streamlit-component"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "174662e7c46cfd5edd82ec0e0e1e31c5d277472f68cd285dcbecd8d8f3fbe274",
                "md5": "a2fe6bae06951359fed4d2c8ac617461",
                "sha256": "70f085abc053bac0365e57667145d414a997497b4bf990ffa12fe60598d920ca"
            },
            "downloads": -1,
            "filename": "st_df_table-0.0.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a2fe6bae06951359fed4d2c8ac617461",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 681977,
            "upload_time": "2024-11-03T16:21:32",
            "upload_time_iso_8601": "2024-11-03T16:21:32.226902Z",
            "url": "https://files.pythonhosted.org/packages/17/46/62e7c46cfd5edd82ec0e0e1e31c5d277472f68cd285dcbecd8d8f3fbe274/st_df_table-0.0.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cf034a95cb4cea77018928a12c8f5f0ed67b50490fca8f5d91bc419563a1f399",
                "md5": "3c4c44f63b879f80b04042b589e61e90",
                "sha256": "2b0018db80a28bcdaab3d3e725aab09b2dd267430d5e7f2cb68f11fcb9d54d37"
            },
            "downloads": -1,
            "filename": "st_df_table-0.0.9.tar.gz",
            "has_sig": false,
            "md5_digest": "3c4c44f63b879f80b04042b589e61e90",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 676796,
            "upload_time": "2024-11-03T16:21:34",
            "upload_time_iso_8601": "2024-11-03T16:21:34.006417Z",
            "url": "https://files.pythonhosted.org/packages/cf/03/4a95cb4cea77018928a12c8f5f0ed67b50490fca8f5d91bc419563a1f399/st_df_table-0.0.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-03 16:21:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mysiar-org",
    "github_project": "st-table",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "st-df-table"
}
        
Elapsed time: 0.39851s