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

Method enforce_runtime_divisions

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

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

Callers 3

assert_divisionsFunction · 0.80

Calls 1

new_collectionFunction · 0.90

Tested by 2