Skip to content

Commit c5f36e2

Browse files
committed
BUG: Recognize tuple state without attrs dict
1 parent 9991295 commit c5f36e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/_libs/arrays.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ cdef class NDArrayBacked:
100100
if len(state) == 1 and isinstance(state[0], dict):
101101
self.__setstate__(state[0])
102102
return
103+
elif len(state) == 2:
104+
self.__setstate__((*state, {}))
105+
return
103106
raise NotImplementedError(state) # pragma: no cover
104107

105108
data, dtype = state[:2]

0 commit comments

Comments
 (0)