Spaces:
Runtime error
Runtime error
File size: 477 Bytes
c2219c5 78ab07d 321875a c2219c5 321875a c2219c5 321875a c2219c5 321875a c2219c5 815d21b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import streamlit as st
import pandas as pd
import numpy as np
from st_aggrid import AgGrid, GridOptionsBuilder, JsCode
def app():
df_template = pd.DataFrame(
'',
index=range(10),
columns=list('abcde')
)
with st.form('example form') as f:
st.header('Example Form')
response = AgGrid(df_template, editable=True, fit_columns_on_grid_load=True)
st.form_submit_button()
st.write(response['data']) |