def fastmsgpack_loads(data): raw = list(msgpack_unpack( BytesIO(_l1(data)), object_hook=object_hook, )) # raw will always be a list, which is most likely a list containing # a single dataframe or series if len(raw) == 1: # we only serialized one structure, just return it return raw[0] return raw
def fastmsgpack_loads(data, object_hook=object_hook): raw = list(msgpack_unpack( BytesIO(_l1(data)), object_hook=object_hook, )) # raw will always be a list, which is most likely a list containing # a single dataframe or series if len(raw) == 1: # we only serialized one structure, just return it return raw[0] return raw