-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: simplify _is_single_block/is_mixed_type #34935
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
pandas/core/internals/managers.py
Outdated
0, len(self), 1 | ||
) | ||
# Assumes we are 2D; overriden by SingleBlockManager | ||
return len(self.blocks) <= 1 |
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.
Is there a particular reason for this to be lte instead of eq? From the name I think the latter is more apt (and what it did previously?)
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.
good point, will update
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
k thanks |
No description provided.