Skip to content

Commit

Permalink
Update operators.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jrycw authored Oct 19, 2023
1 parent a42185f commit e8700f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/python/user-guide/expressions/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8700f6

Please sign in to comment.