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(rust): Initial implementation of histogram algorithm #4752

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

hpux735
Copy link
Contributor

@hpux735 hpux735 commented Sep 7, 2022

As mentioned in the Discord, and to further support this issue, I've implemented a dedicated histogram function. It's very similar to cut() in implementation (uses asof_join), but it keeps categories of the bin series that have zero counts. It's not expected to have bins missing in a histogram just because the count is zero.

@github-actions github-actions bot added the rust Related to Rust Polars label Sep 7, 2022
@github-actions github-actions bot added the python Related to Python Polars label Sep 15, 2022
@hpux735
Copy link
Contributor Author

hpux735 commented Sep 20, 2022

I've been using this in a branch long enough, I forgot it hasn't been merged yet. Any chance we could hit the button?

@ritchie46
Copy link
Member

Sorry for the delay. Can you do a rebase on master?

@github-actions github-actions bot removed the python Related to Python Polars label Sep 21, 2022
@hpux735
Copy link
Contributor Author

hpux735 commented Sep 21, 2022

Ok, this should be all cleaned up now.

@ritchie46
Copy link
Member

Thanks @hpux735. A bit delayed, but here we go!

@ritchie46 ritchie46 merged commit 493b0a0 into pola-rs:master Sep 29, 2022
@stinodego stinodego changed the title Initital implementation of histogram algorithm feat(rust): Initital implementation of histogram algorithm Oct 1, 2022
@github-actions github-actions bot added the enhancement New feature or an improvement of an existing feature label Oct 1, 2022
@stinodego stinodego changed the title feat(rust): Initital implementation of histogram algorithm feat(rust): Initial implementation of histogram algorithm Oct 1, 2022
@hpux735
Copy link
Contributor Author

hpux735 commented Oct 3, 2022

Awesome, thanks!

@hpux735 hpux735 deleted the histo branch October 3, 2022 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants