We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 142c168 commit 49125a6Copy full SHA for 49125a6
pandas/_libs/internals.pyx
@@ -922,7 +922,9 @@ cdef class BlockValuesRefs:
922
new_referenced_blocks = []
923
for ref in self.referenced_blocks:
924
status = PyWeakref_GetRef(ref, &pobj)
925
- if status == 1:
+ if status == -1:
926
+ return
927
+ elif status == 1:
928
new_referenced_blocks.append(ref)
929
Py_DECREF(<object>pobj)
930
self.referenced_blocks = new_referenced_blocks
0 commit comments