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: Fix Series.get failure on missing NaN (#8569) #16619

Merged
merged 1 commit into from
Jun 8, 2017

Conversation

dsm054
Copy link
Contributor

@dsm054 dsm054 commented Jun 7, 2017

Handle obscure case where .get(np.nan) wouldn't behave as expected. Fortunately the only change needed is within the unlikely branch, and so performance of get shouldn't be affected at all in the ordinary case.

[X] fixes #8569
[X] tests added / passed
[X] passes git diff upstream/master --name-only -- '*.py' | flake8 --diff
[X] whatsnew entry

@codecov
Copy link

codecov bot commented Jun 7, 2017

Codecov Report

Merging #16619 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #16619      +/-   ##
==========================================
- Coverage   90.96%   90.93%   -0.03%     
==========================================
  Files         161      161              
  Lines       49263    49265       +2     
==========================================
- Hits        44810    44800      -10     
- Misses       4453     4465      +12
Flag Coverage Δ
#multiple 88.69% <100%> (-0.03%) ⬇️
#single 40.22% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/indexes/numeric.py 97.12% <100%> (+0.02%) ⬆️
pandas/plotting/_converter.py 63.23% <0%> (-1.82%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10c17d4...4293830. Read the comment docs.

@codecov
Copy link

codecov bot commented Jun 7, 2017

Codecov Report

Merging #16619 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #16619      +/-   ##
==========================================
- Coverage   90.96%   90.93%   -0.03%     
==========================================
  Files         161      161              
  Lines       49263    49265       +2     
==========================================
- Hits        44810    44800      -10     
- Misses       4453     4465      +12
Flag Coverage Δ
#multiple 88.69% <100%> (-0.03%) ⬇️
#single 40.22% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/indexes/numeric.py 97.12% <100%> (+0.02%) ⬆️
pandas/plotting/_converter.py 63.23% <0%> (-1.82%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10c17d4...4293830. Read the comment docs.

@jreback jreback added this to the 0.20.3 milestone Jun 8, 2017
@jreback jreback added Bug Indexing Related to indexing on series/frames, not to indexes themselves Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate labels Jun 8, 2017
@jreback jreback merged commit 2b44868 into pandas-dev:master Jun 8, 2017
@jreback
Copy link
Contributor

jreback commented Jun 8, 2017

thanks!

@dsm054 dsm054 deleted the bugfix/series_get_nan branch June 8, 2017 11:56
stangirala pushed a commit to stangirala/pandas that referenced this pull request Jun 11, 2017
TomAugspurger pushed a commit to TomAugspurger/pandas that referenced this pull request Jul 6, 2017
TomAugspurger pushed a commit that referenced this pull request Jul 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Series.get with Float64Index and numpy nan returns empty Series
2 participants