def apply_pair(self, other, f, kwargs, strand=False, as_pyranges=True): f = ray.remote(f) result = pyrange_apply(f, self, other, **kwargs) if not as_pyranges: return result else: return PyRanges(result)
def apply(self, f, strand=False, as_pyranges=True, kwargs=None): if not kwargs: kwargs = {} kwargs = fill_kwargs(kwargs) f = ray.remote(f) result = pyrange_apply_single(f, self, strand, kwargs) if not as_pyranges: return result else: return PyRanges(result)
def eval(self, eval_cmd, strand=True, as_pyranges=True, **kwargs): f = lambda df: eval(eval_cmd) kwargs = fill_kwargs(kwargs) f = ray.remote(f) result = pyrange_apply_single(f, self, strand, kwargs) if not as_pyranges: return result else: return PyRanges(result)
def apply_pair(self, other, f, kwargs=None, strand=False, as_pyranges=True): if kwargs is None: kwargs = {} kwargs = fill_kwargs(kwargs) f = ray.remote(f) result = pyrange_apply(f, self, other, **kwargs) if not as_pyranges: return result else: return PyRanges(result)