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
So, I think it would be more user-friendly to raise an error, leading people towards cast_time_zone
Having looked into this further, I think this might have been the original intention in https://github.com/pola-rs/polars/pull/4645/files, and that with_time_zone on tz-naive might only be working accidentallly:
Problem description
Breaking this off from #6561
with_time_zone
on a tz-naive converts as if it were starting from UTC:I think this is rarely what people are actually looking for - instead, they probably wanted
tz_localize
/cast_time_zone
:So, I think it would be more user-friendly to raise an error, leading people towards
cast_time_zone
Having looked into this further, I think this might have been the original intention in https://github.com/pola-rs/polars/pull/4645/files, and that
with_time_zone
on tz-naive might only be working accidentallly:polars/polars/polars-lazy/polars-plan/src/dsl/dt.rs
Lines 77 to 79 in afc55f5
@ritchie46 could you confirm please? (and apologies if I misread your original intention!)
The text was updated successfully, but these errors were encountered: