We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4924e48 commit 14219f4Copy full SHA for 14219f4
queries/polars/q14.py
@@ -29,7 +29,7 @@ def q(
29
.select(
30
(
31
100.00
32
- * pl.when(pl.col("p_type").str.contains("PROMO*"))
+ * pl.when(pl.col("p_type").str.starts_with("PROMO"))
33
.then(pl.col("l_extendedprice") * (1 - pl.col("l_discount")))
34
.otherwise(0)
35
.sum()
0 commit comments