MCPcopy
hub / github.com/dask/dask / enforce_runtime_divisions

Method enforce_runtime_divisions

dask/dataframe/dask_expr/_collection.py:1638–1646  ·  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

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

Callers 3

assert_divisionsFunction · 0.80

Calls 1

new_collectionFunction · 0.90

Tested by 2