Skip to content

REF: simplify Block.replace #37781

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 13, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

ser.replace("", "") # no exception
obj = frame_or_series(pd.array([1, 2, 3], dtype="Int64"))
result = obj.replace("", "") # no exception
# should not have changed dtype
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in master we get back int64 instead of Int64

@jreback jreback added Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code labels Nov 13, 2020
@jreback jreback added this to the 1.2 milestone Nov 13, 2020
@jreback
Copy link
Contributor

jreback commented Nov 13, 2020

I guess this technically a bug fix as previously replace on a Period would incorrectly cast, pls add a whatsnew, merge on green (or ping if you want).

@jreback jreback merged commit 34a4c51 into pandas-dev:master Nov 13, 2020
@jbrockmendel jbrockmendel deleted the ref-block-replace branch November 13, 2020 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants