Skip to main content

Display Dataframe with buttons

Project description

Dataframe with button

Streamlit component that allows you to display Dataframe with a button

Installation instructions

pip install dataframe_with_buttons

Usage instructions

import streamlit as st
import pandas as pd
from dataframe_with_button import static_dataframe
from dataframe_with_button import editable_dataframe
import json
df = pd.DataFrame({
    "BATCH_ID": ["item1", "item2", "item3"],
    "Name": ["Apple", "Banana", "Cherry"],
    "Price": [1.2, 0.8, 2.5],
    "IN_STOCK": [True, False, True],
    "EMAIL": ["abc@gmail.com", "cde@k.com", "abc@gmail.com"]
})

df["EMAIL"] = pd.Categorical(df["EMAIL"], categories=["abc@gmail.com", "cde@k.com"])
result = static_dataframe(df, clickable_column="BATCH_ID")
result2 = editable_dataframe(df, clickable_column="BATCH_ID")
Screenshot 2025-01-03 at 10 35 48 PM

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

dataframe_with_buttons-1.0.0.tar.gz (784.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dataframe_with_buttons-1.0.0-py3-none-any.whl (791.3 kB view details)

Uploaded Python 3

File details

Details for the file dataframe_with_buttons-1.0.0.tar.gz.

File metadata

  • Download URL: dataframe_with_buttons-1.0.0.tar.gz
  • Upload date:
  • Size: 784.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for dataframe_with_buttons-1.0.0.tar.gz
Algorithm Hash digest
SHA256 87e111b214cad1810b4e27a1a3fc77b02512d5bb99ad8fe6e564ea9e34e6810b
MD5 f9ef8687ffa8fd9442e0621032acae5e
BLAKE2b-256 a221fe0ec2a93eaeb73ca9ed7951dc3f1e917dac775e771a983f92655441d081

See more details on using hashes here.

File details

Details for the file dataframe_with_buttons-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dataframe_with_buttons-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecb77d65c2f19d881323dac4c4daa522496903c14163d03cc6029135d683b29c
MD5 ca390231a1130b62e4be5fa723d323aa
BLAKE2b-256 a3fe4a692486843508014f4b3e5d3202c1d632f98f4c752e1d593fc0dd46a43f

See more details on using hashes here.

Supported by

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