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

[Enh]: Support for narwhals.Expr.hist #1561

Open
mscolnick opened this issue Dec 10, 2024 · 1 comment
Open

[Enh]: Support for narwhals.Expr.hist #1561

mscolnick opened this issue Dec 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mscolnick
Copy link
Contributor

We would like to learn about your use case. For example, if this feature is needed to adopt Narwhals in an open source project, could you please enter the link to it below?

This is for marimo

We already use narhwals, but this would help with performance.

Please describe the purpose of the new feature or describe the problem to solve.

We would like to move some of our vega charts for y=count(*), x=bin(column) that get binned on the frontend to be on the backend. Since they are just a summary per column, we could achieve this with narwhals.Expr.hist

Suggest a solution if possible.

narwhals.Expr.hist similar to polars.Expr.hist

for us in particular, we are looking to support:

  • polars
  • pandas
  • pyarrow
  • ibis (but can convert to pyarrow)

If you have tried alternatives, please describe them below.

Alternative would be using vegafusion but that is an additional dependency that we could potentially avoid.

Additional information that may help us understand your needs.

No response

@MarcoGorelli MarcoGorelli added the enhancement New feature or request label Dec 10, 2024
@MarcoGorelli
Copy link
Member

thanks for the request - I'd say that this is in-scope. not yet sure how we'd do it for pyarrow but we can explore it

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