File tree 3 files changed +2
-12
lines changed
3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 13
13
is_list_like ,
14
14
is_sequence ,
15
15
)
16
- from pandas .core .dtypes .generic import ABCSeries
16
+ from pandas .core .dtypes .generic import ABCMultiIndex , ABCSeries
17
17
18
18
if TYPE_CHECKING :
19
19
from pandas import DataFrame , Series , Index
@@ -281,7 +281,7 @@ def apply_standard(self):
281
281
and not self .dtypes .apply (is_extension_array_dtype ).any ()
282
282
# Disallow complex_internals since libreduction shortcut
283
283
# cannot handle MultiIndex
284
- and not self .agg_axis . _has_complex_internals
284
+ and not isinstance ( self .agg_axis , ABCMultiIndex )
285
285
):
286
286
287
287
values = self .values
Original file line number Diff line number Diff line change @@ -4086,11 +4086,6 @@ def _assert_can_do_op(self, value):
4086
4086
msg = "'value' must be a scalar, passed: {0}"
4087
4087
raise TypeError (msg .format (type (value ).__name__ ))
4088
4088
4089
- @property
4090
- def _has_complex_internals (self ):
4091
- # to disable groupby tricks in MultiIndex
4092
- return False
4093
-
4094
4089
def _is_memory_usage_qualified (self ):
4095
4090
"""
4096
4091
Return a boolean if we need a qualified .info display.
Original file line number Diff line number Diff line change @@ -1396,11 +1396,6 @@ def values(self):
1396
1396
self ._tuples = lib .fast_zip (values )
1397
1397
return self ._tuples
1398
1398
1399
- @property
1400
- def _has_complex_internals (self ):
1401
- # to disable groupby tricks
1402
- return True
1403
-
1404
1399
@cache_readonly
1405
1400
def is_monotonic_increasing (self ):
1406
1401
"""
You can’t perform that action at this time.
0 commit comments