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