Skip to content

Commit

Permalink
add test for 'abs(expr)'
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-beedie committed Jul 27, 2023
1 parent a43c63e commit cc390d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/tests/test_udfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
("a", lambda x: x // 1 % 2, '(pl.col("a") // 1) % 2'),
("a", lambda x: x & True, 'pl.col("a") & True'),
("a", lambda x: x | False, 'pl.col("a") | False'),
("a", lambda x: x != 3, 'pl.col("a") != 3'),
("a", lambda x: abs(x) != 3, 'pl.col("a").abs() != 3'),
("a", lambda x: int(x) > 1, 'pl.col("a").cast(pl.Int64) > 1'),
("a", lambda x: not (x > 1) or x == 2, '~(pl.col("a") > 1) | (pl.col("a") == 2)'),
("a", lambda x: x is None, 'pl.col("a") is None'),
Expand Down

0 comments on commit cc390d6

Please sign in to comment.