-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
BUG/API: Make consistent API for tz-aware and tz-naive ops #11351
Comments
Note that also with other dtypes there are some of the same 'inconsistencies', casting when assigning and not with fillna:
|
@jorisvandenbossche your last example is numpy conversion at work, we could fix it, but IMHO nor really worth it. Option 1 is already selected, and reaffirmed in #11329 So the general rule for
All other cases are converted to I will leave this issue open to discuss a possibility of using Option 3 on a specific case (explicity raising an error) (or having a using [4] above
|
[3] - we actually allow this and just convert things to |
cc @mroeschke some of these might be closable as already fixed (future PR) |
Everything looks tested and fixed but [3], opened up #21671 for a more specific issue. |
Currently there are some inconsistent results. We should clarify the policy first.
1. coerced to object dtype
I prefer this behavior.
2. converted to GMT
3. raise explicit error
This looks second best.
4. not handled properly (bug)
-> Split to #11455, closed by #12195.
The text was updated successfully, but these errors were encountered: