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.9.tar.gz (701.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-0.0.2.9-py3-none-any.whl (707.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dataframe_with_buttons-0.0.2.9.tar.gz
  • Upload date:
  • Size: 701.1 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.9.tar.gz
Algorithm Hash digest
SHA256 6e324d75f2d6b3146584589f4f7898ab4695a325ddc845bafcdc64be6039f492
MD5 37598b48cb8de999e06c04740bf08cbb
BLAKE2b-256 c9f556a4b6126a74831ad88c0784b774896e68642a4d63601c3937dd3861b6ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dataframe_with_buttons-0.0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ee45d72d600183530f41955f5574a68b1a3a42d3bcd102c0b31ac0aabc297dc5
MD5 0d74000a9278f6af31431bc63f07bcd0
BLAKE2b-256 a164754fd7a9a98f30ac10ea421ce605441c0e0315322d31b43452355d684f9e

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