Can you select rows in a table?

Hi @gaboc4. Unfortunately that functionality is not yet supported but we are designing it! In the meantime, a workaround would be to use an st.multiselect, e.g.:

selected_indices = st.multiselect('Select rows:', data.index)

Which will work up to about 1000 rows or so and which will look like this:

You can see an example in this gist.

This feature request is being tracked here. Please feel free to follow the issue to keep up with the latest developments. Also please feel free to comment on it so that we can better understand your use-case.

Thanks for using Streamlit!!

4 Likes