Skip to content

Commit

Permalink
CLN: clean up internal impl of fillna/replace, xref #11153
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed Oct 17, 2015
1 parent 849bc7d commit 2cda523
Show file tree
Hide file tree
Showing 7 changed files with 423 additions and 266 deletions.
6 changes: 5 additions & 1 deletion doc/source/whatsnew/v0.17.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,13 @@ Bug Fixes

- Bug in ``HDFStore.select`` when comparing with a numpy scalar in a where clause (:issue:`11283`)


- Bug in tz-conversions with an ambiguous time and ``.dt`` accessors (:issue:`11295`)
- Bug in comparisons of Series vs list-likes (:issue:`11339`)
- Bug in ``DataFrame.replace`` with a ``datetime64[ns, tz]`` and a non-compat to_replace (:issue:`11326`)


- Bug in ``DataFrame.replace`` with a ``datetime64[ns, tz]`` and a non-compat to_replace (:issue:`11326`, :issue:`11153`)



- Bug in list-like indexing with a mixed-integer Index (:issue:`11320`)
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2999,8 +2999,6 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,
'{0!r}').format(type(to_replace).__name__)
raise TypeError(msg) # pragma: no cover

new_data = new_data.convert(copy=not inplace, numeric=False)

if inplace:
self._update_inplace(new_data)
else:
Expand Down
Loading

0 comments on commit 2cda523

Please sign in to comment.