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

fix: Method dt.ordinal_day was returning UTC results as opposed to those on the local timestamp #21410

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

MarcoGorelli
Copy link
Collaborator

closes #21406

@MarcoGorelli MarcoGorelli changed the title fix: dt.ordinal_day was returning UTC results as opposed to those on the local timestamp fix: Method dt.ordinal_day was returning UTC results as opposed to those on the local timestamp Feb 22, 2025
@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars and removed title needs formatting labels Feb 22, 2025
Copy link

codecov bot commented Feb 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.89%. Comparing base (789f38b) to head (36f390d).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21410      +/-   ##
==========================================
- Coverage   79.96%   79.89%   -0.07%     
==========================================
  Files        1597     1597              
  Lines      229026   229035       +9     
  Branches     2618     2618              
==========================================
- Hits       183133   182991     -142     
- Misses      45294    45445     +151     
  Partials      599      599              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MarcoGorelli MarcoGorelli marked this pull request as ready for review February 22, 2025 21:26
.expect("Removing time zone is infallible");
ca_local.apply_kernel_cast::<Int16Type>(&f)
},
_ => ca.apply_kernel_cast::<Int16Type>(&f),
Copy link
Member

@ritchie46 ritchie46 Feb 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we assign ca from the match statement?

Then we only have to apply &f once, saving some compiler bloat.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will already merge so it's included in release. Could you make a follow up?

@ritchie46 ritchie46 merged commit 5b48926 into pola-rs:main Feb 23, 2025
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ordinal_day() returns 365 on January 1st (depending on time and year)
2 participants