Skip to content

Improvement ideas for st.dataframe #5153

@cmayoracurzio

Description

@cmayoracurzio

Context

Streamlit plans to make improvements to st.dataframe during Q4 2022, according to the roadmap. Therefore decided to list a few ideas below for the Streamlit dev team. Hope this helps!

Improvement ideas

  • Boolean arguments to enable/disable current and any upcoming functionalities: editing, search, column resizing, column reordering, column sorting, filtering, downloading CSV, etc. In many situations, too much interactivity can confuse end users.
  • Boolean argument to hide index column easily.
  • column_width argument to set a fixed column width, for cases in which all columns should have same width. If argument undeclared, column width would depend on header.
  • Fine control over which cells can be edited and which ones cannot. For example, users might define a condition upon which some specific cells become editable, and others stop being editable.
  • Handling/parsing of edited values that do not match column type. For example, if a user edit in a numeric column is non-numeric, edit does not resolve and reverts to previous value (or becomes NaN). Otherwise, st.dataframe could provide an "output" pandas DataFrame so that users can compare differences with the "input" dataframe used.

Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.

If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.dataframeRelated to the `st.dataframe` elementtype:enhancementRequests for feature enhancements or new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions