Editable DataFrame Issues

I am trying to create an editable dataframe in my snowflake streamlit application. Every time I add a value in the table, it re-runs and the table scrolls to the top. I have to scroll all the way to the end to enter just one value and it scrolls again.

  1. How do I stop this re-run
  2. How do I add the rows at the top
  3. Sometimes the value entered gets lost in re-runs, how do I stop it from happening

Are you able to share a small sample of reproducible code?

Using st.data_editor doesn’t look to produce this condition and st.dataframe is static so it’s not clear how you are adding items.