Skip to content

Commit c2024d0

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

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
@@ -70,20 +70,16 @@ validation = (
7070
set=["google", "facebook", "organic", "crosspromo", "other_campaign"]
7171
)
7272
.col_vals_not_in_set(columns="country", set=["Mongolia", "Germany"]) # STEP 6
73-
.col_vals_expr(expr=nw.when( # STEP 7
74-
nw.col("item_type") == "iap")
75-
.then(nw.col("item_name").str.contains(r"^[a-z]*?\d$"))
76-
)
77-
.col_vals_between( # STEP 8
73+
.col_vals_between( # STEP 7
7874
columns="session_duration",
7975
left=10, right=50,
8076
pre = lambda df: df.select(pl.median("session_duration"))
8177
)
82-
.rows_distinct(columns_subset=["player_id", "session_id", "time"]) # STEP 9
83-
.row_count_match(count=2000) # STEP 10
84-
.col_count_match(count=11) # STEP 11
85-
.col_vals_not_null(columns=pb.starts_with("item")) # STEP 12-14
86-
.col_exists(columns="start_day") # STEP 15
78+
.rows_distinct(columns_subset=["player_id", "session_id", "time"]) # STEP 8
79+
.row_count_match(count=2000) # STEP 9
80+
.col_count_match(count=11) # STEP 10
81+
.col_vals_not_null(columns=pb.starts_with("item")) # STEPS 11-13
82+
.col_exists(columns="start_day") # STEP 14
8783
.interrogate()
8884
)
8985

0 commit comments

Comments
 (0)