-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: fillna() for tz-aware timestamps causes an exception #15855
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
hmm, does look buggy. These should be coerced to/from i8, filled, then re-localized. |
Also, this works as expected:
However, this raises an exception:
Furthermore, this works as expected:
However, this loses the timezone:
|
is the same exact bug (the issue is it can't reshape properly), it should have a |
can you make a new issue for:
I thought we had an issue for this. But can't seem to find it. |
I have split-out that issue as #15884. |
This is something that fixes the
I.e., use the total size of the result instead of just the length of one dimension. Here's an example of it at work:
Does this make sense as a fix, or is there more to it than that? |
in other cases like this, we have a |
It passes
I can package this as a proper PR and see what happens with the CI. |
I've split-out the other issue I reported as its own item: #15966 |
Suppose I have a DataFrame of timestamps:
I can attempt to fill any nulls:
Now suppose my timestsamps are tz-aware:
This causes an error:
This does not appear to be fixed by #14960.
The text was updated successfully, but these errors were encountered: