CLN: Resubmit of GH14700. Fixes GH14554. Errors other than IndexingError and KeyError now bubble up appropriately.

This commit is contained in:
Chris Ham 2016-12-18 16:37:07 -05:00
parent f3c5a427cc
commit 458c0cc0c5
2 changed files with 3 additions and 1 deletions

View File

@ -96,3 +96,5 @@ Bug Fixes
- Bug in ``.plot(kind='kde')`` which did not drop missing values to generate the KDE Plot, instead generating an empty plot. (:issue:`14821`)
- 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`)
-Bug in indexing that transformed ``RecursionError`` into ``KeyError`` or ``IndexingError`` (:issue:`14554`)

View File

@ -848,7 +848,7 @@ class _NDFrameIndexer(object):
[(a, self._convert_for_reindex(t, axis=o._get_axis_number(a)))
for t, a in zip(tup, o._AXIS_ORDERS)])
return o.reindex(**d)
except:
except(KeyError, IndexingError):
raise self._exception
def _convert_for_reindex(self, key, axis=0):