feat(api): add ibis.dense_rank()
top-level function
#5408
Labels
Milestone
ibis.dense_rank()
top-level function
#5408
Is your feature request related to a problem?
This isn't a huge problem, I have something working, but more of a ux question. I have the following util function:
Example usage:
I find it strange that I need to call
dense_rank()
on an arbitrary column of table. It feels dirty to just choose an arbitrary column. In raw SQL, DENSE_RANK() can stand all by itself, it doesn't have to associated with another expression. Similar to how ibis.row_number(). I would think thatibis.dense_rank()
should work, and that the expression could bind to the table later, when I do the mutate(). Then I could remove the Table argument from my group_id() function.Or perhaps I am missing something here. Or if you have a suggestion on how to do this task cleaner, I'd appreciate that too.
Describe the solution you'd like
ibis.dense_rank() ? and similar for the other rank functions?
What version of ibis are you running?
4.1.0
What backend(s) are you using, if any?
all
Code of Conduct
The text was updated successfully, but these errors were encountered: