mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 17:15:39 +08:00
Fix bug.
This commit is contained in:
1 parent
31b3cbee39
commit
6e3eceb62c
1 file changed
+4
-2
@@ -429,8 +429,10 @@ def dataframe_to_serialized_dict(frame):
|
||||
block=values
|
||||
)
|
||||
|
||||
# If we are dealing with an object array, pickle it instead.
|
||||
if isinstance(block, _int.ObjectBlock):
|
||||
# If we are dealing with an object array, pickle it instead. Note that
|
||||
# we do not use isinstance here because _int.CategoricalBlock is a
|
||||
# subclass of _int.ObjectBlock.
|
||||
if type(block) == _int.ObjectBlock:
|
||||
block_data['object'] = None
|
||||
block_data['block'] = builtin_pickle.dumps(values)
|
||||
|
||||
|
||||
Reference in new issue
Block a user