To upload files, please first save the app
import streamlit as st
import pandas as pd
from st_aggrid import AgGrid
# Sample data
df = pd.DataFrame({
'Name': ['Alice', 'Bob', 'Charlie'],
'Age': [25, 30, 35],
'City': ['New York', 'San Francisco', 'London']
})
st.subheader("Editable Table")
grid_return = AgGrid(df, editable=True, height=150)
st.subheader("Updated Data")
st.dataframe(grid_return['data'])
st.info("Try editing some cells in the first table. The second table will automatically reflect your changes.")
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?