Help setting up st.data_editor

want a Streamlit app with st.data_editor where:

  • You have a base table with Student Name.

  • Users can edit Category and Sub Category.

  • Category dropdown should come from keys of your dictionary (Fruits, Vegetables).

  • Sub Category dropdown should be dynamically filtered based on selected Category.