Save an object to a compressed file
Essentially, this is just a wrapper for
pickle.dump()with a few conveniences, like default pickle protocol 4 and gzip compression. The ‘.pbz’ extension will be added if file has none.
- obj : Any
Object to be saved.
- file : Union[str, pathlib.Path]
May be a
pathlibobject or a file object created with