load

load(file)

Load an object from a compressed file

Wraps pickle.load() with the same conveniences as pb.save().

Parameters:
file : Union[str, pathlib.Path]

May be a str, a pathlib object or a file object created with open().