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-0.0.2.5.tar.gz (692.8 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-0.0.2.5-py3-none-any.whl (699.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dataframe_with_buttons-0.0.2.5.tar.gz
  • Upload date:
  • Size: 692.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for dataframe_with_buttons-0.0.2.5.tar.gz
Algorithm Hash digest
SHA256 25c08696dcba13cb6dc5d383d51a836f6b56519ddd5c85ef13cb01f1012604fc
MD5 ff8ade97c0e49c58212cef8d213710a6
BLAKE2b-256 33c6f7a8f2f35b8c34221c293dd004305fe889cd0627ce3c9da00ad7748fa0cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dataframe_with_buttons-0.0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a7c951646ba61eb3263948ea727c7d13af63f8ab047026090c38c5efc363264c
MD5 d85088f5e4e3cb413a61e2dedaff7515
BLAKE2b-256 627db5a8d73ec2632efa2720b5ed9c44248066ee05de4698261d30fbb4ff7b56

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