Skip to content

Commit 829b7a4

Browse files
committed
Update index.qmd
1 parent 8234038 commit 829b7a4

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

docs/demos/02-advanced/index.qmd

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,16 @@ validation = (
3333
set=["google", "facebook", "organic", "crosspromo", "other_campaign"]
3434
)
3535
.col_vals_not_in_set(columns="country", set=["Mongolia", "Germany"]) # STEP 6
36-
.col_vals_expr(expr=nw.when( # STEP 7
37-
nw.col("item_type") == "iap")
38-
.then(nw.col("item_name").str.contains(r"^[a-z]*?\d$"))
39-
)
40-
.col_vals_between( # STEP 8
36+
.col_vals_between( # STEP 7
4137
columns="session_duration",
4238
left=10, right=50,
4339
pre = lambda df: df.select(pl.median("session_duration"))
4440
)
45-
.rows_distinct(columns_subset=["player_id", "session_id", "time"]) # STEP 9
46-
.row_count_match(count=2000) # STEP 10
47-
.col_count_match(count=11) # STEP 11
48-
.col_vals_not_null(columns=pb.starts_with("item")) # STEP 12-14
49-
.col_exists(columns="start_day") # STEP 15
41+
.rows_distinct(columns_subset=["player_id", "session_id", "time"]) # STEP 8
42+
.row_count_match(count=2000) # STEP 9
43+
.col_count_match(count=11) # STEP 10
44+
.col_vals_not_null(columns=pb.starts_with("item")) # STEPS 11-13
45+
.col_exists(columns="start_day") # STEP 14
5046
.interrogate()
5147
)
5248

0 commit comments

Comments
 (0)