Skip to content

Commit 478969f

Browse files
committed
Update index.qmd
1 parent b290df7 commit 478969f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/get-started/index.qmd

+5-6
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ The intent is to provide the key information in one place, and have it be interp
4646
Here's the code that performs the validation on the Polars table.
4747

4848
```{python}
49-
5049
import pointblank as pb
5150
5251
validation_2 = (
@@ -101,16 +100,16 @@ Thresholds let you take action at different levels of severity. The next section
101100

102101
## Using Threshold Levels
103102

104-
Thresholds enable you to signal failure at different severity levels. In the near future, thresholds will be able to trigger custom actions. For example, when testing a column for NULLs with `col_vals_not_null()` you might want to warn on any NULLs and stop where there are 10% NULLs in the column.
103+
Thresholds enable you to signal failure at different severity levels. In the near future, thresholds will be able to trigger custom actions. For example, when testing a column for NULLs with `col_vals_not_null()` you might want to warn on any NULLs and stop where there are 20% NULLs in the column.
105104

106-
```python
107-
validation_3 = (
105+
```{python}
106+
validation_4 = (
108107
pb.Validate(data=pb.load_dataset(dataset="small_table"))
109-
.col_vals_not_null(columns="a", thresholds=(1, 0.1))
108+
.col_vals_not_null(columns="c", thresholds=(1, 0.2))
110109
.interrogate()
111110
)
112111
113-
validation_3
112+
validation_4
114113
```
115114

116115
In this case, the `thresholds=` argument in the `cols_vals_not_null()` step was used, but we can also set thresholds globally by using `Validate(thresholds=...)`.

0 commit comments

Comments
 (0)