-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ERR: cut/qcut need better error message when passing invalid input #13318
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
Comments
Not sure what you are refering,
|
Exactly. I was thinking labels are things like age20-30. So labels=false Labels=none suggests to me no labels. Labels=true suggests add labels. I reckon most people would expect true to mean add labels rather than fail
|
doc-string
|
Yes it does what it says in the docs. What I am saying is that it would be much clearer if labels=true were
|
|
Just my feedback as a new user of cut/qcut as to how it could be made more Suggest you ask other new users what they think. I would imagine most would On 30 May 2016 at 14:11, Jeff Reback [email protected] wrote:
|
@jreback I'm not seeing why But then OP is suggesting that If we don't want the new behaviour maybe the docstring should just explicitly say 'array or False' so people don't try to pass |
The purpose of this issue is to fix the doc-string and raise an approporite message on
I suppose you could change this to default to Further not really sure So if one of you wants to take this up and see what's possible w/o breaking anything (or just raise appropriately on |
I agree. It is the False that is confusing because it implies there is a On 1 June 2016 at 12:09, Jeff Reback [email protected] wrote:
|
well, the point is you don't need to normally specify labels as they are auto-generated by default.
This is not very convenient; you unless you are also passing in bins you don't want to have the nbins parameter floating around in 2 different places. |
take |
Labels=False means use integers as category names
To use the category labels I would expect to say labels=True but instead you have to say labels=None.
It seems illogical to say labels=None when you want labels.
The text was updated successfully, but these errors were encountered: