Return a great_tables GT object summarizing the step-level changes.
This renders the added, removed, and modified steps side by side for quick human review before accepting the edit. It pairs with accept(): review the change, then accept it. Each row is one record from changed_steps(), colored by the kind of change, and the instruction is shown as the subtitle. When nothing changed, the table has a single “(no changes)” row.
Returns
GT
-
A
great_tables table with one row per changed step.
Examples
import pointblank as pb
small_table = pb.load_dataset("small_table")
edit = pb.EditValidation.from_plans(
pb.Validate(data=small_table).col_vals_gt(columns="d", value=100).rows_distinct(),
pb.Validate(data=small_table).col_vals_gt(columns="d", value=50),
instruction="Loosen the d check and drop the duplicate-row check",
)
edit.review()
| Proposed plan changes |
| Loosen the d check and drop the duplicate-row check |
| Change |
Method |
Before |
After |
| ~ modified |
col_vals_gt |
col_vals_gt(columns='d', value=100) |
col_vals_gt(columns='d', value=50) |
| − removed |
rows_distinct |
rows_distinct() |
|
The modified col_vals_gt() step shows its old and new text in the Before and After columns, and the removed rows_distinct() step has only a Before entry. Because the result is a GT object, it can be styled further or saved with the great_tables API.