-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Fix the output of df.describe on an empty categorical / object column #26474
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
Fix the output of df.describe on an empty categorical / object column #26474
Conversation
…n empty Categorical / Object column is the same as that of an non empty column
Hello @enisnazif! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-05-31 14:05:51 UTC |
…n empty Categorical / Object column is the same as that of an non empty column
Codecov Report
@@ Coverage Diff @@
## master #26474 +/- ##
==========================================
- Coverage 91.75% 91.74% -0.01%
==========================================
Files 174 174
Lines 50765 50767 +2
==========================================
- Hits 46578 46576 -2
- Misses 4187 4191 +4
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26474 +/- ##
==========================================
- Coverage 91.84% 91.84% -0.01%
==========================================
Files 174 174
Lines 50644 50646 +2
==========================================
- Hits 46516 46514 -2
- Misses 4128 4132 +4
Continue to review full report at Codecov.
|
The test failure is from our job against NumPy master.
I would see if Categorical.value_counts can be updated to pass |
Ok, thanks - I'll take a look |
…n empty Categorical / Object column is the same as that of an non empty column
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.
…n empty Categorical / Object column is the same as that of an non empty column
@enisnazif can you add a note in the api breaking section |
Done |
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.
doc comment; ping on green.
Addressed review comments
|
…ty-df-describe-output
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.
Pushed a small doc fix. LGTM
i'll take a look at the failing jobs |
…ty-df-describe-output
@enisnazif that's fixed on master. Just merged & repushed. Ping on green. |
@jreback @TomAugspurger hey, looks like it's green. Is it good to merge? |
thanks @enisnazif |
git diff upstream/master -u -- "*.py" | flake8 --diff