Skip to content

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

Merged
merged 4 commits into from
Sep 7, 2019
Merged

CLN: catch Exception less #28309

merged 4 commits into from
Sep 7, 2019

Conversation

jbrockmendel
Copy link
Member

No description provided.

Copy link
Member

@WillAyd WillAyd left a 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:
Copy link
Member

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

Copy link
Member Author

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?

@WillAyd WillAyd added the Clean label Sep 6, 2019
Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@WillAyd WillAyd added this to the 1.0 milestone Sep 6, 2019
@jreback jreback merged commit 53ad571 into pandas-dev:master Sep 7, 2019
@jreback
Copy link
Contributor

jreback commented Sep 7, 2019

thanks

@jbrockmendel jbrockmendel deleted the cln branch September 7, 2019 17:29
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants