-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Fixed KDE Plot to drop the missing values #14820
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
Conversation
Current coverage is 85.30% (diff: 100%)@@ master #14820 diff @@
==========================================
Files 144 144
Lines 50957 51004 +47
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 43469 43511 +42
- Misses 7488 7493 +5
Partials 0 0
|
Can you add a test and a release note in whatsnew/0.19.2? |
Yes, I can do that |
can you rebase, problem with appeveyor which i just fixed |
Sure, I'll do that!
…On Sat, Dec 10, 2016 at 10:33 AM Jeff Reback ***@***.***> wrote:
can you rebase, problem with appeveyor which i just fixed
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#14820 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGg1E01seEPTO65FIZGUbq1__9zCTGicks5rGsZfgaJpZM4LHV8J>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need a test too. That can go in pandas/tests/plotting/test_series.py There's already a test in there with missing values test_kde_missing_vals
, apparently not the right mix of missing values though.
Put a comment with a link to this issue when you make the new test. Thanks!
@@ -78,4 +78,8 @@ Bug Fixes | |||
|
|||
- Explicit check in ``to_stata`` and ``StataWriter`` for out-of-range values when writing doubles (:issue:`14618`) | |||
|
|||
<<<<<<< HEAD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove the git conflict markers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I noticed that - will add the required test too asap!
@jreback - Is there a problem with the Travis CI? |
you need to rebase on current master, I fixed this yesterday. |
Thanks @jreback - have rebased now. |
axes = _check_plot_works(s.plot.kde) | ||
# check if the values have any missing values | ||
# GH14821 | ||
self.assertTrue(any(~np.isnan(axes.lines[0]._xorig)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace the ._xorig
with .get_xdata()
? Better to not use matplotlib's internal APIs.
One small change, then we should be good! We're aware of that travis failure on the 3.4 build. |
@keshavramaswamy thanks! |
BUG: Fixed KDE plot to ignore missing values closes pandas-dev#14821 * fixed kde plot to ignore the missing values * added comment to elaborate the changes made * added a release note in whatsnew/0.19.2 * added test to check for missing values and cleaned up whatsnew doc * added comment to refer the issue * modified to fit lint checks * replaced ._xorig with .get_xdata()
BUG: Fixed KDE plot to ignore missing values closes pandas-dev#14821 * fixed kde plot to ignore the missing values * added comment to elaborate the changes made * added a release note in whatsnew/0.19.2 * added test to check for missing values and cleaned up whatsnew doc * added comment to refer the issue * modified to fit lint checks * replaced ._xorig with .get_xdata() (cherry picked from commit 033d345)
Version 0.19.2 * tag 'v0.19.2': (78 commits) RLS: v0.19.2 DOC: update release notes for 0.19.2 TST: skip gbq upload test as flakey DOC: clean-up v0.19.2 whatsnew DOC: update Pandas Cheat Sheet (GH13202) DOC: Pandas Cheat Sheet TST: matplotlib 2.0 fix in log limits for barplot (GH14808) (pandas-dev#14957) flake8 fix import Remove test - from 0.20.0 PR slipped in PERF: fix getitem unique_check / initialization issue cache and remove boxing (pandas-dev#14931) CLN: Resubmit of GH14700. Fixes GH14554. Errors other than Indexing… Clean up construction of Series with dictionary and datetime index BUG: .fillna() for datetime64 with tz is passing thru floats BUG: Patch read_csv NA values behaviour ENH: merge_asof() has type specializations and can take multiple 'by' parameters (pandas-dev#13936) [Backport pandas-dev#14886] BUG: regression in DataFrame.combine_first with integer columns (GH14687) (pandas-dev#14886) Fixed KDE Plot to drop the missing values (pandas-dev#14820) ENH: merge_asof() has left_index/right_index and left_by/right_by (pandas-dev#14253) (pandas-dev#14531) TST: correct url for test file on s3 (xref pandas-dev#14587) ...
* releases: (78 commits) RLS: v0.19.2 DOC: update release notes for 0.19.2 TST: skip gbq upload test as flakey DOC: clean-up v0.19.2 whatsnew DOC: update Pandas Cheat Sheet (GH13202) DOC: Pandas Cheat Sheet TST: matplotlib 2.0 fix in log limits for barplot (GH14808) (pandas-dev#14957) flake8 fix import Remove test - from 0.20.0 PR slipped in PERF: fix getitem unique_check / initialization issue cache and remove boxing (pandas-dev#14931) CLN: Resubmit of GH14700. Fixes GH14554. Errors other than Indexing… Clean up construction of Series with dictionary and datetime index BUG: .fillna() for datetime64 with tz is passing thru floats BUG: Patch read_csv NA values behaviour ENH: merge_asof() has type specializations and can take multiple 'by' parameters (pandas-dev#13936) [Backport pandas-dev#14886] BUG: regression in DataFrame.combine_first with integer columns (GH14687) (pandas-dev#14886) Fixed KDE Plot to drop the missing values (pandas-dev#14820) ENH: merge_asof() has left_index/right_index and left_by/right_by (pandas-dev#14253) (pandas-dev#14531) TST: correct url for test file on s3 (xref pandas-dev#14587) ...
git diff upstream/master | flake8 --diff