def read_pickle( filepath_or_buffer: FilePathOrBuffer, compression: Optional[str] = "infer", storage_options: StorageOptions = None, ): _, _, _, kwargs = inspect.getargvalues(inspect.currentframe()) Engine.subscribe(_update_engine) from modin.core.execution.dispatching.factories.dispatcher import FactoryDispatcher return DataFrame(query_compiler=FactoryDispatcher.read_pickle(**kwargs))
def read_pickle( filepath_or_buffer, compression: Optional[str] = "infer", storage_options: StorageOptions = None, ): # noqa: PR01, RT01, D200 """ Load pickled Modin object (or any object) from file. """ _, _, _, kwargs = inspect.getargvalues(inspect.currentframe()) Engine.subscribe(_update_engine) from modin.core.execution.dispatching.factories.dispatcher import FactoryDispatcher return DataFrame(query_compiler=FactoryDispatcher.read_pickle(**kwargs))