Skip to content

Commit

Permalink
Refine text in the data extracts demo
Browse files Browse the repository at this point in the history
  • Loading branch information
rich-iannone committed Feb 5, 2025
1 parent 4166afa commit 78b5f94
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/demos/03-data-extracts/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ html-table-processing: none

Pulling out data extracts that highlight rows with validation failures.

Validation with failures at *Step 2*:
<p style="text-transform: uppercase;">Validation with failures at *Step 2*:</p>

```{python}
#| echo: false
Expand All @@ -23,20 +23,20 @@ validation = (
tbl_name="game_revenue",
label="Validation with test unit failures available as an extract"
)
.col_vals_gt(columns="item_revenue", value=0) # STEP 1: no test unit failures
.col_vals_ge(columns="session_duration", value=5) # STEP 2: 14 test unit failures -> extract
.col_vals_gt(columns="item_revenue", value=0)
.col_vals_ge(columns="session_duration", value=5)
.interrogate()
)
validation
```

<br>
Extract from *Step 2* (`.col_vals_ge(columns="session_duration", value=5)`):
<p style="text-transform: uppercase;">Extract from *Step 2* (which has 14 failing test units):</p>

```{python}
#| echo: false
pb.preview(validation.get_data_extracts(i=2, frame=True))
pb.preview(validation.get_data_extracts(i=2, frame=True), n_head=20, n_tail=20)
```

```python
Expand All @@ -51,7 +51,6 @@ validation = (
.col_vals_gt(columns="item_revenue", value=0) # STEP 1: no test unit failures
.col_vals_ge(columns="session_duration", value=5) # STEP 2: 14 test unit failures -> extract
.interrogate()
.interrogate()
)
```

Expand Down

0 comments on commit 78b5f94

Please sign in to comment.