-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: dt64 <-> dt64tz roundup #38622
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
Comments
Agreed Is there any possibility of just deprecating any naive -> tz aware (and vice versa) converstion with astype #33401 (comment)? |
I agree that would be nice. The question is if we are OK with breaking |
I'd be okay with that with just specifying "any tz_dtype conversion should use |
agreed. if @jorisvandenbossche and @jreback are on board ill make a deprecation PR |
gentle ping @jorisvandenbossche @jreback |
@jreback gentle ping |
I am +1 on this, even though generally pandas makes life easy by just doing the right thing. when there is a choice where its not completely obvious as is the case for localize/convert we should raise. I think this ok for a 1.3 release. |
xref #33401 which discusses astype, #24559 which discusses constructors. I think these need to be considered jointly.
Two big-picture questions.
constructor(dt64values, tz=tz)
, do we interpret dt64values as UTC or wall-times?Let's check the current behavior on master for Timestamp, DatetimeIndex, and Series (see code block below if you want to check my work)
If we were starting fresh, I would probably lean towards making these all interpret dt64 as wall-times. But because these are already mostly-UTC, it would be an easier change to bring the DatetimeIndex behavior in line with the others.
Thoughts? cc @jorisvandenbossche @mroeschke @jreback
The text was updated successfully, but these errors were encountered: