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

Method enforce_runtime_divisions

dask/dataframe/dask_expr/_collection.py:1632–1640  ·  view source on GitHub ↗

Enforce the current divisions at runtime. Injects a layer into the Task Graph that checks that the current divisions match the expected divisions at runtime.

(self)

Source from the content-addressed store, hash-verified

1630 return result
1631
1632 def enforce_runtime_divisions(self):
1633 """Enforce the current divisions at runtime.
1634
1635 Injects a layer into the Task Graph that checks that the current divisions
1636 match the expected divisions at runtime.
1637 """
1638 if not self.known_divisions:
1639 raise ValueError("No known divisions to enforce!")
1640 return new_collection(expr.EnforceRuntimeDivisions(self))
1641
1642 @derived_from(pd.DataFrame)
1643 def skew(

Callers 3

assert_divisionsFunction · 0.80

Calls 1

new_collectionFunction · 0.90

Tested by 2