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

Method _blockwise_arg

dask/dataframe/dask_expr/_expr.py:607–617  ·  view source on GitHub ↗

Return a Blockwise-task argument

(self, arg, i)

Source from the content-addressed store, hash-verified

605 return head + "-" + self.deterministic_token
606
607 def _blockwise_arg(self, arg, i):
608 """Return a Blockwise-task argument"""
609 if isinstance(arg, Expr):
610 # Make key for Expr-based argument
611 if self._broadcast_dep(arg):
612 return TaskRef((arg._name, 0))
613 else:
614 return TaskRef((arg._name, i))
615
616 else:
617 return arg
618
619 def _task(self, name: Key, index: int) -> Task:
620 """Produce the task for a specific partition

Callers 8

_taskMethod · 0.95
_taskMethod · 0.45
_taskMethod · 0.45
_taskMethod · 0.45
_taskMethod · 0.45
_taskMethod · 0.45
_taskMethod · 0.45
_taskMethod · 0.45

Calls 2

_broadcast_depMethod · 0.95
TaskRefClass · 0.90

Tested by

no test coverage detected