Skip to content

Commit 4953db5

Browse files
committed
Update preprocessing.qmd
1 parent 4a2915a commit 4953db5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/user-guide/preprocessing.qmd

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,16 @@ validation method call.
150150
Let's now try to prepare the final validation scenario, checking that there are at least three
151151
instances of every categorical value in column `f` (which contains string values in the set of
152152
`"low"`, `"mid"`, and `"high"`). This time, we'll prepare the transformed table (transformed by
153-
Polars expressions) outside of the Pointblank code. Then, we'll plug in the `data_transformed`
154-
DataFrame with in lambda expression in `pre=`:
153+
Polars expressions) outside of the Pointblank code.
154+
155+
```{python}
156+
data_original = pb.load_dataset("small_table")
157+
data_transformed = data_original.group_by("f").len(name="n")
158+
159+
data_transformed
160+
```
161+
162+
Then, we'll plug in the `data_transformed` DataFrame with a lambda expression in `pre=`:
155163

156164
```{python}
157165
data_original = pb.load_dataset("small_table")

0 commit comments

Comments
 (0)