streamlit / streamlit

Streamlit — A faster way to build and share data apps.
https://streamlit.io
Apache License 2.0
38.3k stars 3.33k forks source link

Support multi-column sort for `st.dataframe` #10729

Open lukasmasuch opened 1 week ago

lukasmasuch commented 1 week ago

Checklist

Summary

st.dataframe supports sorting a single column at a time. Allow sorting the dataframe by multiple columns at the same time, e.g. "col A" ascending + "col B" descending.

Why?

Other common data grids support sorting a dataframe by multiple columns at the same time which is useful for interactive data exploration tasks.

How?

This can be implemented purely as a frontend feature that doesn't require any API changes.

For example, this is how its implemented in Notion:

Image

Additional Context

No response

github-actions[bot] commented 1 week ago

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits