-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: make Block.delete return a new Block #45689
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
self._blklocs[blk.mgr_locs.indexer] = np.arange(len(blk)) | ||
nb = blk.delete(blk_locs) | ||
blocks_tup = ( | ||
self.blocks[:blkno_l] + (nb,) + self.blocks[blkno_l + 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.
blkno_l
is never negative here right?
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.
correct
Yes. These were fixed in #45707 |
Nice. Now #45352 is all that's left between us and block.values being immutable |
I lost track of the original use case that motivated this, but in general i think we're better off keeping block.values fixed.