We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 098e3d7 commit 1a3daf4Copy full SHA for 1a3daf4
pandas/core/indexes/base.py
@@ -3410,7 +3410,9 @@ def get_indexer(
3410
if is_categorical_dtype(target.dtype):
3411
# potential fastpath
3412
# get an indexer for unique categories then propagate to codes via take_nd
3413
- categories_indexer = self.get_indexer(target.categories)
+ # Note: calling get_indexer instead of _get_indexer causes
3414
+ # RecursionError GH#42088
3415
+ categories_indexer = self._get_indexer(target.categories)
3416
indexer = algos.take_nd(categories_indexer, target.codes, fill_value=-1)
3417
3418
if (not self._is_multi and self.hasnans) and target.hasnans:
0 commit comments