From bbcbf19a560efed894670b0bc495a80283e003fc Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Wed, 25 Apr 2018 15:07:28 -0500 Subject: [PATCH] Cleanup --- pandas/core/generic.py | 1 - pandas/core/series.py | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 508fa14a325b3..6d55f92167d3b 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -7420,7 +7420,6 @@ def _where(self, cond, other=np.nan, inplace=False, axis=None, level=None, if other.ndim <= self.ndim: _, other = self.align(other, join='left', axis=axis, - # XXX level=level, fill_value=np.nan) # if we are NOT aligned, raise as we cannot where index diff --git a/pandas/core/series.py b/pandas/core/series.py index 0c2eb40567c55..0d7288edac5d3 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -3216,10 +3216,8 @@ def _reindex_indexer(self, new_index, indexer, copy): return self.copy() return self - # TODO: determine if we want EA to handle fill_value=None - # if not, then we have to determine this here. new_values = algorithms.take_1d(self._values, indexer, - fill_value=None, allow_fill=True) + allow_fillTrue, fill_value=None) return self._constructor(new_values, index=new_index) def _needs_reindex_multi(self, axes, method, level):