Dear Community, is it possible to make a table that will be editable and it will be possible to select several records from it to download ?
I tried to do it this way, this is my code:
unique_Type = list(df[“MHE type”].unique())
selected_value = st.sidebar.selectbox(“MHE type”, unique_Type)
filtered_data = df[df[“MHE type”] == selected_value]
edited_df = st.data_editor(
filtered_data,
num_rows=“dynamic”)
people = edited_df.selection.rows
filtered_df = filtered_data.iloc[people]
st.dataframe(
filtered_df,
use_container_width=True)
and this is error:
AttributeError: ‘DataFrame’ object has no attribute ‘selection’
Thank you in advance for your help