Skip to content

BUG: reductions for nullable dtypes should return pd.NA for skipna=False #30971

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 5 commits into from
Jan 18, 2020

Conversation

jorisvandenbossche
Copy link
Member

Closes #30958

Just realized that I should probably check boolean dtype as well

@jorisvandenbossche jorisvandenbossche added Bug Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate labels Jan 13, 2020
@jorisvandenbossche jorisvandenbossche added this to the 1.0.0 milestone Jan 13, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

seems reasonable. I would add this issue number to an existing whatsnew note in 1.0.0 that's appropriate.

@jorisvandenbossche jorisvandenbossche changed the title BUG: reductions for IntegerArray should return pd.NA for skipna=False BUG: reductions for nullable dtypes should return pd.NA for skipna=False Jan 14, 2020
@TomAugspurger
Copy link
Contributor

We have a section for NA-related API breaking changes to IntegerArray that this can fall under.

Copy link
Contributor

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

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

Merge when you're ready @jorisvandenbossche

@jreback jreback merged commit 4e9ee4d into pandas-dev:master Jan 18, 2020
@jreback
Copy link
Contributor

jreback commented Jan 18, 2020

sure

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Jan 18, 2020
jreback pushed a commit that referenced this pull request Jan 18, 2020
… pd.NA for skipna=False (#31121)

Co-authored-by: Joris Van den Bossche <[email protected]>
@jorisvandenbossche jorisvandenbossche deleted the integer-reduction-na branch January 19, 2020 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pd.Series.sum() returns nan for Int64 with pd.NA
4 participants