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 103ea6f commit c37f7d1Copy full SHA for c37f7d1
pandas/io/msgpack/_packer.pyx
@@ -8,6 +8,7 @@ from libc.limits cimport *
8
9
from pandas.io.msgpack.exceptions import PackValueError
10
from pandas.io.msgpack import ExtType
11
+from numpy import bool_
12
13
14
cdef extern from "../../src/msgpack/pack.h":
@@ -133,7 +134,7 @@ cdef class Packer(object):
133
134
while True:
135
if o is None:
136
ret = msgpack_pack_nil(&self.pk)
- elif isinstance(o, bool):
137
+ elif isinstance(o, (bool, bool_)):
138
if o:
139
ret = msgpack_pack_true(&self.pk)
140
else:
0 commit comments