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")

img.png

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dataframe_with_buttons-0.0.2.tar.gz
  • Upload date:
  • Size: 30.7 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.tar.gz
Algorithm Hash digest
SHA256 d84204c463c811b7788f717f9ace37a2da1095038258ca779e4241f1e9b691e8
MD5 d3df51a3982a9fd2e8b2ad9a534b2ef7
BLAKE2b-256 ae8260699e71a4cd4a6cc5a2903f627866fc8eef45e0b5ba8965f9c5c7e5d7f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dataframe_with_buttons-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eb7d0a96ccdadbed990c38dbae9123e3fb9d3cce39bcd0e169a5bba9fe55b34b
MD5 9c716449c41664f8328a97bc905b53af
BLAKE2b-256 1c9324929859ffc439e1f13314b3382e24af5caa96df36258a05f574290b2229

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