Skip to content
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

BUG: preserve nullable dtype for float result in IntegerArray/BooleanArray arithmetic ops #38178

Conversation

jorisvandenbossche
Copy link
Member

@jorisvandenbossche jorisvandenbossche commented Nov 30, 2020

xref #38110

This ensures that an operation on IntegerArray that results in floats (eg division) returns a FloatingArray instead of numpy float array.

This is only a small change in the actual code, the bulk of the changes is updating the tests.

@jorisvandenbossche jorisvandenbossche added the NA - MaskedArrays Related to pd.NA and nullable extension arrays label Nov 30, 2020
@jorisvandenbossche jorisvandenbossche added this to the 1.2 milestone Nov 30, 2020
@jorisvandenbossche jorisvandenbossche changed the title BUG: preserve nullable dtype for float result in IntegerArray arithmetic ops BUG: preserve nullable dtype for float result in IntegerArray/BooleanArray arithmetic ops Nov 30, 2020
@jreback
Copy link
Contributor

jreback commented Nov 30, 2020

looks ok, needs a whatsnew note

@jorisvandenbossche jorisvandenbossche mentioned this pull request Nov 30, 2020
@jorisvandenbossche
Copy link
Member Author

needs a whatsnew note

Added a sentence to the section we already have about the new nullable floating dtype

@jorisvandenbossche
Copy link
Member Author

Failures are the ones present on master as well

@jorisvandenbossche jorisvandenbossche merged commit 5b2e162 into pandas-dev:master Dec 1, 2020
@jorisvandenbossche jorisvandenbossche deleted the EA-integer-floating-arithm-ops branch December 1, 2020 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NA - MaskedArrays Related to pd.NA and nullable extension arrays
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants