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

Method _simplify_down

dask/dataframe/dask_expr/_expr.py:2686–2694  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2684 raise NotImplementedError()
2685
2686 def _simplify_down(self):
2687 if isinstance(self.frame, Elemwise):
2688 operands = [
2689 Tail(op, self.n) if isinstance(op, Expr) else op
2690 for op in self.frame.operands
2691 ]
2692 return type(self.frame)(*operands)
2693 if isinstance(self.frame, Tail):
2694 return Tail(self.frame.frame, min(self.n, self.frame.n))
2695
2696 def _simplify_up(self, parent, dependents):
2697 from dask.dataframe.dask_expr import Repartition

Callers

nothing calls this directly

Calls 2

minFunction · 0.85
TailClass · 0.70

Tested by

no test coverage detected