File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 52
52
maybe_fill ,
53
53
)
54
54
55
+ import pandas as pd
55
56
from pandas .core .frame import DataFrame
56
57
from pandas .core .groupby import grouper
57
58
from pandas .core .indexes .api import (
@@ -837,7 +838,11 @@ def agg_series(
837
838
# test_groupby_empty_with_category gets here with self.ngroups == 0
838
839
# and len(obj) > 0
839
840
840
- if len (obj ) > 0 and not isinstance (obj ._values , np .ndarray ):
841
+ if (
842
+ len (obj ) > 0
843
+ and not isinstance (obj ._values , np .ndarray )
844
+ and not isinstance (obj ._values , pd .arrays .ArrowExtensionArray )
845
+ ):
841
846
# we can preserve a little bit more aggressively with EA dtype
842
847
# because maybe_cast_pointwise_result will do a try/except
843
848
# with _from_sequence. NB we are assuming here that _from_sequence
You can’t perform that action at this time.
0 commit comments