Skip to content

Conversation

keshavramaswamy
Copy link
Contributor

@keshavramaswamy keshavramaswamy commented Dec 8, 2016

@keshavramaswamy keshavramaswamy changed the title fixed kde plot to ignore the missing values fixed kde plot to drop the missing values Dec 8, 2016
@keshavramaswamy keshavramaswamy changed the title fixed kde plot to drop the missing values Fixed KDE Plot to drop the missing values Dec 8, 2016
@codecov-io
Copy link

codecov-io commented Dec 8, 2016

Current coverage is 85.30% (diff: 100%)

Merging #14820 into master will increase coverage by <.01%

@@             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          

Powered by Codecov. Last update 86233e1...4273f8e

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Dec 8, 2016

Can you add a test and a release note in whatsnew/0.19.2?

@keshavramaswamy
Copy link
Contributor Author

Yes, I can do that

@jreback jreback added Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Visualization plotting labels Dec 10, 2016
@jreback
Copy link
Contributor

jreback commented Dec 10, 2016

can you rebase, problem with appeveyor which i just fixed

@keshavramaswamy
Copy link
Contributor Author

keshavramaswamy commented Dec 10, 2016 via email

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.

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
Copy link
Contributor

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.

Copy link
Contributor Author

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!

@keshavramaswamy
Copy link
Contributor Author

@jreback - Is there a problem with the Travis CI?

@jreback
Copy link
Contributor

jreback commented Dec 12, 2016

you need to rebase on current master, I fixed this yesterday.

@keshavramaswamy
Copy link
Contributor Author

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)),
Copy link
Contributor

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.

@TomAugspurger
Copy link
Contributor

One small change, then we should be good! We're aware of that travis failure on the 3.4 build.

@TomAugspurger TomAugspurger merged commit 033d345 into pandas-dev:master Dec 15, 2016
@TomAugspurger
Copy link
Contributor

@keshavramaswamy thanks!

ischurov pushed a commit to ischurov/pandas that referenced this pull request Dec 19, 2016
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()
@jorisvandenbossche jorisvandenbossche added this to the 0.19.2 milestone Dec 24, 2016
jorisvandenbossche pushed a commit to jorisvandenbossche/pandas that referenced this pull request Dec 24, 2016
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)
yarikoptic added a commit to neurodebian/pandas that referenced this pull request Jan 3, 2017
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)
  ...
yarikoptic added a commit to neurodebian/pandas that referenced this pull request Jan 3, 2017
* 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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Visualization plotting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants