-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
"Cannot convert tz-naive timestamps" #9865
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
I think it is a docs thing. Also the docs on @jreback correct? |
yeh, this is just an old/not updated doc-string. This will only convert if it is already non-naive, while want to do a PR to update the doc-strings (maybe add a |
Sure, will do docs. @jreback , what do you mean by |
A section in the docstring, see https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt#sections |
OK, will do |
Fix of the docs for tz_conver and tz_localize (fix for #9865)
Closed by #9906 |
I'm not sure if it is an issue of DOCs or code.
Docs say that
tz_convert
"Convert the axis to target time zone. If it is time zone naive, it will be localized to the passed time zone."But the code in contrast raises an exception:
Results in
TypeError: Cannot convert tz-naive timestamps, use tz_localize to localize
The text was updated successfully, but these errors were encountered: