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

perf: speed up .dt.truncate for large numbers of years #13310

Merged
merged 1 commit into from Dec 29, 2023

Conversation

MarcoGorelli
Copy link
Collaborator

This speeds up .dt.truncate('100y') >2x by first doing the whole years, and then the individual months
https://www.kaggle.com/code/marcogorelli/polars-timing?scriptVersionId=156901483

@github-actions github-actions bot added performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars labels Dec 29, 2023
@MarcoGorelli MarcoGorelli marked this pull request as ready for review December 29, 2023 11:03
@ritchie46 ritchie46 merged commit f14ac23 into pola-rs:main Dec 29, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants