We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f26b049 commit 1ecc540Copy full SHA for 1ecc540
doc/source/whatsnew/v0.19.2.txt
@@ -29,7 +29,7 @@ Bug Fixes
29
30
- Compat with ``dateutil==2.6.0``; segfault reported in the testing suite (:issue:`14621`)
31
- Allow ``nanoseconds`` in ``Timestamp.replace`` as a kwarg (:issue:`14621`)
32
-
+-Bug in indexing that transformed ``RecursionError`` into ``KeyError`` or ``IndexingError`` (:issue:`14554`)
33
34
35
pandas/core/indexing.py
@@ -848,7 +848,7 @@ def _multi_take(self, tup):
848
[(a, self._convert_for_reindex(t, axis=o._get_axis_number(a)))
849
for t, a in zip(tup, o._AXIS_ORDERS)])
850
return o.reindex(**d)
851
- except:
+ except (KeyError, IndexError):
852
raise self._exception
853
854
def _convert_for_reindex(self, key, axis=0):
0 commit comments