-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Retain timezone information in to_datetime if box=False #22457
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: Retain timezone information in to_datetime if box=False #22457
Conversation
can you just append this issue number to the prior whatsnew entry, otherwise lgtm (failing tests though) |
Codecov Report
@@ Coverage Diff @@
## master #22457 +/- ##
==========================================
- Coverage 92.05% 92.04% -0.01%
==========================================
Files 169 169
Lines 50733 50743 +10
==========================================
+ Hits 46702 46708 +6
- Misses 4031 4035 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comments. merge away.
return DatetimeIndex._simple_new(result, name=name, | ||
tz=tz_parsed) | ||
if tz_parsed is not None: | ||
if box: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add some comments here would be great (just to make it easier to read, the block below as well)
Thanks @jreback. (Build errors were unrelated to the last commit) |
…dev#22457) * BUG: Retain timezone information in to_datetime if box=False * fix test and add issue number to whatsnew * add comments
git diff upstream/master -u -- "*.py" | flake8 --diff
Don't think this requires a whatsnew entry since this was introduced in (and part of) #21822 which is slated for v0.24.0