Skip to content

Commit 1aa9fe0

Browse files
authored
remove unnecesary (pandas-dev#36705)
1 parent 4ead552 commit 1aa9fe0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pandas/core/indexes/category.py

-10
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
from pandas.core import accessor
2626
from pandas.core.arrays.categorical import Categorical, contains
27-
import pandas.core.common as com
2827
from pandas.core.construction import extract_array
2928
import pandas.core.indexes.base as ibase
3029
from pandas.core.indexes.base import Index, _index_shared_docs, maybe_extract_name
@@ -574,15 +573,6 @@ def _convert_list_indexer(self, keyarr):
574573

575574
return self.get_indexer(keyarr)
576575

577-
@doc(Index._convert_arr_indexer)
578-
def _convert_arr_indexer(self, keyarr):
579-
keyarr = com.asarray_tuplesafe(keyarr)
580-
581-
if self.categories._defer_to_indexing:
582-
return keyarr
583-
584-
return self._shallow_copy(keyarr)
585-
586576
@doc(Index._maybe_cast_slice_bound)
587577
def _maybe_cast_slice_bound(self, label, side, kind):
588578
if kind == "loc":

0 commit comments

Comments
 (0)