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

Method enforce_runtime_divisions

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

1670 return result
1671
1672 def enforce_runtime_divisions(self):
1673 """Enforce the current divisions at runtime.
1674
1675 Injects a layer into the Task Graph that checks that the current divisions
1676 match the expected divisions at runtime.
1677 """
1678 if not self.known_divisions:
1679 raise ValueError("No known divisions to enforce!")
1680 return new_collection(expr.EnforceRuntimeDivisions(self))
1681
1682 @derived_from(pd.DataFrame)
1683 def skew(

Callers 3

assert_divisionsFunction · 0.80

Calls 1

new_collectionFunction · 0.90

Tested by 2