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):