-
Notifications
You must be signed in to change notification settings - Fork 48
feat: update cut to work without labels = False and show intervals as dict #335
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
3 {'left_exclusive': 7.5, 'right_inclusive': 10.0} | ||
dtype: struct<left_exclusive: double, right_inclusive: double>[pyarrow] | ||
|
||
Cut with an integer (equal-width bins) and labels=False: |
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.
It seems labels=True
is also acceptable. Can we include a code sample for that?
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.
Was adding this to avoid the confusing case in pandas that labels can be false but can not be true, so I made labels = True works the same as labels = None. But it would appear this may be more confusing. Changed the code back so that now labels won't be able to be True as in pandas.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Code example updates:
https://screenshot.googleplex.com/ApQyMsLXCByk7z8
https://screenshot.googleplex.com/5jFfvntpbX5djv3
Fixes #<issue_number_goes_here> 🦕