Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add search and/or filter functionality to dataframes #1879

Open
nthmost opened this issue Aug 14, 2020 · 6 comments
Open

Add search and/or filter functionality to dataframes #1879

nthmost opened this issue Aug 14, 2020 · 6 comments
Labels
feature:st.data_editor feature:st.dataframe type:enhancement Requests for feature enhancements or new features

Comments

@nthmost
Copy link
Contributor

nthmost commented Aug 14, 2020

User story:

  • It would be really handy to be able to search within a displayed dataframe. I type in what i'm searching in a text box (maybe it appears when I hover over the dataframe or maybe it's always there). Search results could potentially be highlighted in their cell and/or listed above or below the dataframe dynamically.
  • When displaying the dataframe, I'd like the ability to filter what i'm seeing, perhaps by applying search patterns to columns. Examples:
    • Filter a date field by year, e.g. "YY = 2000"
    • Filter a text field on a word or phrase

Desired behavior

  • SEARCH: Display a search box that is displayed meaningfully attached to the dataframe (e.g. top left corner of the div).
    • Display results by highlighting cells and/or by printing relevant rows to a list above or below the dataframe.
  • FILTER: TBD

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.

@nthmost nthmost added feature:st.dataframe type:enhancement Requests for feature enhancements or new features spec needed labels Aug 14, 2020
@vbabaria
Copy link

vbabaria commented Mar 10, 2022

i concur, this would be a great enhancement.

should this issue be raised to streamlit-aggrid code repo as well?

@jrieke
Copy link
Collaborator

jrieke commented Mar 1, 2023

Search is enabled since a while by clicking on a dataframe and pressing cmd/ctrl + F. Filtering is planned but it will probably take a bit until we get to it!

@xinyu-dev
Copy link

I concur!!

@andreaschiappacasse
Copy link

I agree, filtering is the one feature I am missing to completely replace aggrid with st.dataframe in my use cases

@sfc-gh-pkommini
Copy link

@jrieke Is this the right place to also request a group by column context menu feature? or Should I open a new github issue?

@jrieke
Copy link
Collaborator

jrieke commented Dec 6, 2023

@sfc-gh-pkommini sorry didn't see this. A new GitHub issue would be best, so we don't lose track if we close this one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:st.data_editor feature:st.dataframe type:enhancement Requests for feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

8 participants