load_obj#
- load_obj(path: str | CloudPath | Path) Any [source]#
Load a pickled object.
- Parameters:
path (AnyPathStrType) – Path of the pickle
- Returns:
Pickled object
- Return type:
object (Any)
Example
>>> output_pkl = 'D:/path/to/pickle.pkl' >>> load_obj(output_pkl) {"A": np.ones([3, 3]), "B": datetime.today(), "C": SomeEnum.some_name}