-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
REF: avoid passing SingleBlockManager to Series #33727
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
I am not fully sure anymore about the context where I would have said that (do you remember the issue/PR?) But can you explain a bit in more detail what you propose to change or what you want to achieve? (I don't see much in the diff. You didn't yet change cases that are passing block managers to the constructor?) |
I think it was in the PR where originally I wanted to make a
After this PR, the check |
But that's because the SingleBlockManager is also already handled at L206. |
@@ -3649,7 +3649,9 @@ def reindexer(value): | |||
@property | |||
def _series(self): | |||
return { | |||
item: Series(self._mgr.iget(idx), index=self.index, name=item) | |||
item: Series( | |||
self._mgr.iget(idx), index=self.index, name=item, fastpath=True |
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.
we need the fastpath arg?
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.
in order to go through the fastpath, yes. getting rid of the fastpath entirely is a separate topic
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.
kk
cc @jorisvandenbossche IIRC you didnt want to disallow SingleBlockManager because geopandas passes it. In those cases, does it also pass
fastpath=True
? If so, we can consider deprecating allowing SingleBlockManager in the non-fastpath case