-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
describe() for boolean series #6625
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
can't change the actual fields as it needs to return consistly for all dtypes. You could special case it though. I don't think this was done because the same operations on frame will integerize the values on a boolean dtype. So should be consistently done (and the dataframe fix is a bit non-trivial). |
I can help to specialize the boolean case. Most of the code for The original function can only return numerical columns except that all the columns are non-numerical. I propose that we can add a parameter, says Example:
|
I think you can simply just make this work correctly for all columns; the resulting dtype of the frame would be object if you end up with mixed types, but that's just how it is. basically have the series describe deal with the dtype correctly and have the frame desrcibe just call it instead of the individual functions. (don't use apply though, just iterate like it is now). also don't add fields for now, maybe later |
Seems the boolean series is considered as numeric data
Should we deem it as non-numeric data? Says, output as followings:
The text was updated successfully, but these errors were encountered: