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

feat: make n arg optional for Value.topk() #10389

Open
1 task done
NickCrews opened this issue Oct 29, 2024 · 0 comments
Open
1 task done

feat: make n arg optional for Value.topk() #10389

NickCrews opened this issue Oct 29, 2024 · 0 comments
Labels
feature Features or general enhancements

Comments

@NickCrews
Copy link
Contributor

Is your feature request related to a problem?

I want to see the most common values in a column. Currently, I am using https://github.com/NickCrews/ibis-widget to get scrolling and pagination, the best experience I have found so far is I do table.col.topk(100000000).widget(), and then I can scroll/paginate to only go down as far as I want. Note that I just chose an arbitrary large N so that I'm not getting limited. It would be cleaner and less typing if I could just do table.col.topk().widget(), in which case there would be no limit() clause tacked on at the end.

Not a huge need, my workaround is totally easy.

What is the motivation behind your request?

No response

Describe the solution you'd like

def topk(k: int | None = None, by=None, *, name=None)

What version of ibis are you running?

main

What backend(s) are you using, if any?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@NickCrews NickCrews added the feature Features or general enhancements label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features or general enhancements
Projects
Status: backlog
Development

No branches or pull requests

1 participant