Skip to content

v0.1.0

Latest

Choose a tag to compare

@zingbretsen zingbretsen released this 27 Mar 17:33

Initial implementation of editable table streamlit custom component.

import pandas as pd
import streamlit as st

from editable_table import editable_table

table = pd.DataFrame({
    'A': [1, 2, 3],
    'B': [4, 5, 6],
    'C': [7, 8, 9]
})
value = editable_table(table, editable_columns=['A', 'B'], key='my_table_1')

st.write(value)

Allows the caller to mark only specific columns as editable. If no value is provided for editable_columns then all columns are treated as editable.