Skip to content

Commit 78ac1c9

Browse files
committed
Remove example comparing aggregates to other cols
1 parent c1ac859 commit 78ac1c9

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

docs/user-guide/validation-methods.qmd

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -656,25 +656,6 @@ baseline_data = pl.DataFrame({"revenue": [95, 205, 145, 180, 130]})
656656
When `value=None` (the default) and reference data is set, aggregate methods automatically compare
657657
against the same column in the reference data.
658658

659-
### Comparing Against Other Columns
660-
661-
You can also compare aggregates against other columns in the same table using the `col()` helper:
662-
663-
```{python}
664-
comparison_data = pl.DataFrame({
665-
"sales_q1": [100, 150, 200, 175],
666-
"sales_q2": [120, 140, 180, 160],
667-
})
668-
669-
(
670-
pb.Validate(data=comparison_data)
671-
.col_sum_ge(columns="sales_q2", value=pb.col("sales_q1")) # Q2 sum >= Q1 sum
672-
.interrogate()
673-
)
674-
```
675-
676-
This validates that the total sales in Q2 is at least as much as Q1.
677-
678659
## Conclusion
679660

680661
In this article, we've explored the various types of validation methods that Pointblank offers for

0 commit comments

Comments
 (0)