Skip to content

Commit 0dc71b3

Browse files
committed
BUG: Fix GroupBy aggregate coersion of outputs inconsistency for pyarrow dtypes (#61636)
1 parent c067bcd commit 0dc71b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,8 @@ def _box_pa_array(
537537
pa_array = pa_array.dictionary_encode()
538538
if pa_array.type != pa_type:
539539
pa_array = pa_array.cast(pa_type)
540+
if pa.types.is_struct(pa_array.type):
541+
pass
540542
else:
541543
try:
542544
pa_array = pa_array.cast(pa_type)

0 commit comments

Comments
 (0)