We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f26b049 commit ef115bdCopy full SHA for ef115bd
doc/source/whatsnew/v0.19.2.txt
@@ -64,3 +64,4 @@ Bug Fixes
64
65
66
- Explicit check in ``to_stata`` and ``StataWriter`` for out-of-range values when writing doubles (:issue:`14618`)
67
+- Bug in indexing causing RecursionError to be coerced into a KeyError or IndexError. (:issue:`14554`)
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