-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: catch Exception less #28309
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
CLN: catch Exception less #28309
Conversation
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.
looks good a few minor things
try: | ||
return x.shape[axis] > 0 | ||
except Exception: | ||
if x.ndim <= axis: |
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.
Hmm I guess this replicates existing behavior but is this really right? Seems counter intuitive to return True
in a function called is_nonempty
if the axis doesn't exist at all
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.
the comment just above the function "1-d dtypes always are included here" seems to address that. i agree it could be clearer, but I'm not going to lose sleep over it. ideas for better wording?
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.
lgtm
thanks |
No description provided.