-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
concat of tz series and no tz results in attribute error. #11755
Comments
this is realted to #11705 this should work, but both series get converted to so this is a bug in there somewhere |
@jreback If we convert to |
tz that compat iow they match should be preserved this already exists - this is just missing a conversion somewhere I think - if u add tests as I suggest it should be easy to figure out |
@jreback
Creating a series will always return datetime series not object. Output
Any suggestions? |
just step thru the code |
@jreback In this group by test case we expect a datetime64[ns] series . "combining multiple / different timezones yields UTC". And in the above example we expect an object . Is it not an inconsistency ? Should it be datetime64[ns] ? |
see if you can find when that groupby behavior was put in place. IIRC this was though to be more natural. cc @sinhrks but as I look now, we have a policy of only combing the exact same timezones, and converting to object dtype otherwise. There is an exception though because whenever you convert to an actual numpy array, and you have all uniform dtypes then you will get converted to UTC then to naive. So the answer to your question, is that we may need to change this groupby test case to conform. (and possibly note as an API change to clean this up). |
was closed by #12195 |
AttributeError: 'numpy.ndarray' object has no attribute 'tz_localize'
Is it a bug or not supported ?
The text was updated successfully, but these errors were encountered: