-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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: pandas.cut should disallow overlapping IntervalIndex bins #23999
BUG: pandas.cut should disallow overlapping IntervalIndex bins #23999
Conversation
Hello @charlesdong1991! Thanks for updating the PR.
Comment last updated on November 30, 2018 at 08:17 Hours UTC |
Codecov Report
@@ Coverage Diff @@
## master #23999 +/- ##
==========================================
+ Coverage 92.3% 92.31% +<.01%
==========================================
Files 161 161
Lines 51555 51550 -5
==========================================
- Hits 47589 47587 -2
+ Misses 3966 3963 -3
Continue to review full report at Codecov.
|
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.
Thanks! Looks good overall. A couple comments:
- Can you add a whatsnew note to 0.24.0 under the Reshaping subsection of the Bug Fixes section?
- Can you add "Must be non-overlapping." to
cut
docstring, at the end of theIntervalIndex
portion of thebins
parameter description?
Hi, @jschendel , thanks for the review and advices!! As for |
For the whatsnew entry, you'll need to edit the - Bug in :func:`cut` with ``bins`` as an overlapping ``IntervalIndex`` where multiple bins were returned per item instead of raising a ``ValueError`` (:issue:`23980`) |
@jschendel , ahh, I see!! Thank you very much, added! |
thanks @charlesdong1991! |
Follow-up to pandas-devgh-23999. xref pandas-devgh-23922.
git diff upstream/master -u -- "*.py" | flake8 --diff