October 2019
Beginner to intermediate
674 pages
16h 43m
English
Msgpack offers fast and efficient binary serialization.
A single object can be directly converted into msgpack format like so:
df.to_msgpack("sample.msg")
If we have multiple objects, they can be serialized into a single msgpack file like so:
arr = np.random.randint(1,10,7)lst = [10,20,40,60,60]strg = "Data"pd.to_msgpack("msg_all.msg",df,arr,lst,strg)
Read now
Unlock full access