MCPcopy Create free account
hub / github.com/dask/dask / _task

Method _task

dask/dataframe/dask_expr/_expr.py:740–763  ·  view source on GitHub ↗
(self, name: Key, index: int)

Source from the content-addressed store, hash-verified

738 return has_keyword(self.func, "partition_info")
739
740 def _task(self, name: Key, index: int) -> Task:
741 args = [self._blockwise_arg(op, index) for op in self.args]
742 kwargs = dict(self.kwargs if self.kwargs is not None else {})
743 if self._has_partition_info:
744 kwargs["partition_info"] = {
745 "number": index,
746 "division": self.divisions[index],
747 }
748
749 if self.enforce_metadata:
750 kwargs.update(
751 {
752 "_func": self.func,
753 "_meta": self._meta,
754 }
755 )
756 return Task(name, apply_and_enforce, *args, **kwargs)
757 else:
758 return Task(
759 name,
760 self.func,
761 *args,
762 **kwargs,
763 )
764
765 @staticmethod
766 def projected_operation(mapped_func, post_projection, *args, **kwargs):

Callers

nothing calls this directly

Calls 2

TaskClass · 0.90
_blockwise_argMethod · 0.45

Tested by

no test coverage detected