-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TYP: enforce tighter inputs on SingleBlockManager #33092
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
@@ -1649,6 +1640,7 @@ def concat(self, to_concat, new_axis: Index) -> "SingleBlockManager": | |||
------- | |||
SingleBlockManager | |||
""" | |||
assert isinstance(new_axis, Index), new_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.
this is already asserted in the SingleBlockManager constructor, so is not needed here?
pandas/core/internals/managers.py
Outdated
@@ -1515,25 +1515,14 @@ class SingleBlockManager(BlockManager): | |||
def __init__( | |||
self, | |||
block: Block, | |||
axis: Union[Index, List[Index]], | |||
axis: Index, | |||
do_integrity_check: bool = False, | |||
fastpath: bool = False, |
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.
fastpath
has no effect anymore, now? It is still being used in places internally?
lgtm. rebase and @jorisvandenbossche has some comments, ping on green. |
@jorisvandenbossche i think ive addressed your comments, can you confirm? |
Yes, thanks. One more thing, though. For |
Sure |
Thanks! |
there is currently only one place where we pass a list of indexes instead of a single index, so just fixed that and were good to go.