Skip to content
Prev Previous commit
update comment
  • Loading branch information
jschendel committed Jan 28, 2020
commit cc400cd6d9a61c5ba0e7c1251cce8aee0b10a1a4
2 changes: 1 addition & 1 deletion pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4114,7 +4114,7 @@ def _has_complex_internals(self):
"""
Indicates if an index is not directly backed by a numpy array
"""
# used to disable groupby tricks
# used to avoid libreduction code paths, which raise or require conversion
return False

def _is_memory_usage_qualified(self) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/indexes/category.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def values(self):

@property
def _has_complex_internals(self):
# to disable groupby tricks
# used to avoid libreduction code paths, which raise or require conversion
return True

def _wrap_setop_result(self, other, result):
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/indexes/interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def values(self):

@property
def _has_complex_internals(self):
# to disable groupby tricks
# used to avoid libreduction code paths, which raise or require conversion
return True

def __array_wrap__(self, result, context=None):
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/indexes/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ def values(self):

@property
def _has_complex_internals(self):
# to disable groupby tricks
# used to avoid libreduction code paths, which raise or require conversion
return True

@cache_readonly
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/indexes/period.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def values(self):

@property
def _has_complex_internals(self):
# to disable groupby tricks
# used to avoid libreduction code paths, which raise or require conversion
return True

def _shallow_copy(self, values=None, **kwargs):
Expand Down