-
-
Couldn't load subscription status.
- Fork 19.2k
BUG: GH15426 timezone lost in groupby-agg with cython functions #15433
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -133,7 +133,8 @@ def trans(x): # noqa | |
| if dtype.tz: | ||
| # convert to datetime and change timezone | ||
| from pandas import to_datetime | ||
| result = to_datetime(result).tz_localize(dtype.tz) | ||
| result = to_datetime(result).tz_localize('utc') | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can add addtl tests in |
||
| result = result.tz_convert(dtype.tz) | ||
|
|
||
| except: | ||
| pass | ||
|
|
||
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.
compare with
.min()as well