From e8700f60694bddca9fc0a67d802807c4f1f1836c Mon Sep 17 00:00:00 2001 From: Jerry Wu Date: Thu, 19 Oct 2023 19:19:46 +0800 Subject: [PATCH] Update operators.py --- docs/src/python/user-guide/expressions/operators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/python/user-guide/expressions/operators.py b/docs/src/python/user-guide/expressions/operators.py index 6f617487c81e..92bf57952332 100644 --- a/docs/src/python/user-guide/expressions/operators.py +++ b/docs/src/python/user-guide/expressions/operators.py @@ -34,7 +34,7 @@ # --8<-- [start:logical] df_logical = df.select( (pl.col("nrs") > 1).alias("nrs > 1"), - (pl.col("random") <= 0.5).alias("random < .5"), + (pl.col("random") <= 0.5).alias("random <= .5"), (pl.col("nrs") != 1).alias("nrs != 1"), (pl.col("nrs") == 1).alias("nrs == 1"), ((pl.col("random") <= 0.5) & (pl.col("nrs") > 1)).alias("and_expr"), # and