You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think adding a param name, with the same semantics as lname and rname in join, with a default of {name}_count, would be nice. Or, just making this always be the behavior, with no option, would also be ok. I vote for {name}_count over Count({name}), because it is easier to construct the first one programatically, eg
NickCrews
changed the title
feat: make .topk() and .value_counts() have same column names
feat: make .topk() and .value_counts() output same column names
Mar 4, 2024
Is your feature request related to a problem?
Ideally, these two methods would return the same data, except that .topk() is .order_by()ed and .limit()ed.
But currently the output column names are different (
a_count
vsCount(a)
)Describe the solution you'd like
I think adding a param
name
, with the same semantics aslname
andrname
in join, with a default of{name}_count
, would be nice. Or, just making this always be the behavior, with no option, would also be ok. I vote for{name}_count
overCount({name})
, because it is easier to construct the first one programatically, egAlso this is more consistent with our default behavior of adding suffixes in .join()
Anything else we could do to make these two methods have the same API would be great, but I think it doesn't make sense to unify them any more.
What version of ibis are you running?
main
What backend(s) are you using, if any?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: