BUG: groupby.agg with udf incorrectly inferring pyarrow timestamp dtype #49163
Labels
Apply
Apply, Aggregate, Transform, Map
Arrow
pyarrow functionality
Bug
Dtype Conversions
Unexpected or buggy dtype conversions
Groupby
The agg call does dtype inference on the result by calling maybe_cast_pointwise_result, which has special-casing (which we've wanted to get rid of for a while) for pd.DatetimeTZDtype.
AFAICT the way to fix this is to make _from_sequence stricter xref #33254.
The text was updated successfully, but these errors were encountered: