Open maread99 opened 9 months ago
Thanks for the report. Result of a git bisect:
commit 746e5eee860b6e143c33c9b985e095dac2e42677
Author: jbrockmendel
Date: Mon Oct 16 11:50:28 2023 -0700
ENH: EA._from_scalars (#53089)
cc @jbrockmendel
yah i think thats a problem in DTA._from_scalars. _from_scalars itself was a mistake xref #56430
This can be reproduced just using index.map
, so taking off the groupby label.
Pandas version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[ ] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
Although the return from the 'by' function is timezone naive, the group labels are timezone aware (UTC).
(I've tried every combination of the
as_index
andgroup_keys
options, always get the same group keys).Expected Behavior
Would have expected behaviour as pandas 2.1.4 and prior, i.e,. group keys as returned from the 'by' function...
Installed Versions