Skip to content

Commit 458c0cc

Browse files
committed
CLN: Resubmit of GH14700. Fixes GH14554. Errors other than IndexingError and KeyError now bubble up appropriately.
1 parent f3c5a42 commit 458c0cc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/source/whatsnew/v0.19.2.txt

+2
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,5 @@ Bug Fixes
9696
- Bug in ``.plot(kind='kde')`` which did not drop missing values to generate the KDE Plot, instead generating an empty plot. (:issue:`14821`)
9797

9898
- Bug in ``unstack()`` if called with a list of column(s) as an argument, regardless of the dtypes of all columns, they get coerced to ``object`` (:issue:`11847`)
99+
100+
-Bug in indexing that transformed ``RecursionError`` into ``KeyError`` or ``IndexingError`` (:issue:`14554`)

pandas/core/indexing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ def _multi_take(self, tup):
848848
[(a, self._convert_for_reindex(t, axis=o._get_axis_number(a)))
849849
for t, a in zip(tup, o._AXIS_ORDERS)])
850850
return o.reindex(**d)
851-
except:
851+
except(KeyError, IndexingError):
852852
raise self._exception
853853

854854
def _convert_for_reindex(self, key, axis=0):

0 commit comments

Comments
 (0)