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

improve column selection in data tables #3973

Open
Light2Dark opened this issue Mar 4, 2025 · 1 comment
Open

improve column selection in data tables #3973

Light2Dark opened this issue Mar 4, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@Light2Dark
Copy link
Collaborator

Description

This is a pretty cool feature that's useful for data analysis and investigation. I use DataGrip so I miss this feature in marimo. It also exists in Excel/Google sheets but isn't as convenient (multiple clicks) to use.

DataGrip
Image

https://www.jetbrains.com/help/datagrip/tables-filter.html#use_the_local_filter

Google sheets
Image

Suggested solution

Likely need to add more backend functions to perform this search and call them from the frontend. Also need to keep in mind multi column selection.

Image

I think we could simplify the filtering, allow search & selection here.

Alternative

No response

Additional context

may need to set a limit for large tables / prevent long computation.

@Light2Dark Light2Dark added the enhancement New feature or request label Mar 4, 2025
@aszenz
Copy link

aszenz commented Mar 5, 2025

In technical terms this is called a set filter, commonly used for text columns. Would be cool to have it in Marimo.

To calculate it, an index is needed which is just getting the top 100 values

select 
 txt_col,
 count(*) as cnt
from dataframe
group by txt_col
order by cnt desc
limit 100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants