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)
| 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( |