Experimental data editor dynamic rows


I love the new feature of in-app editing a dataframe. With the num_rows=“dynamic” once can add and delete rows. I just have one problem, whenever this option is available, the option to sort the columns is not available :frowning:

Steps to reproduce

Code snippet:

add code here

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:

Explain what you expect to happen when you run the code above.

Actual behavior:

Explain the undesired behavior or error you see when you run the code above.
If you’re seeing an error message, share the full contents of the error message here.

Debug info

  • Streamlit version: (get it with $ streamlit version)
  • Python version: (get it with $ python --version)
  • Using Conda? PipEnv? PyEnv? Pex?
  • OS version:
  • Browser version:

Requirements file

Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.


  • Link to your GitHub repo:
  • Link to your deployed app:

Additional information

If needed, add any other context about the problem here.

Thanks for reporting this issue. This is indeed expected. Adding rows to a sorted table isn’t currently a good user experience since the new row gets instantly sorted in with every change in the value. This leads to disappearing rows. To better allow sorting and adding rows, we need to do some refactoring.

1 Like

Thank you so much. Does this means this bug will be fixed anytime soon?