Skip to content

Commit

Permalink
Minor docstring update
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Jan 18, 2024
1 parent bbe4425 commit 8e9c723
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py-polars/polars/expr/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -5116,11 +5116,11 @@ def sub(self, other: Any) -> Self:

def neg(self) -> Self:
"""
Method equivalent of unary negation operator `-expr`.
Method equivalent of unary minus operator `-expr`.
Examples
--------
>>> df = pl.DataFrame({"a": [-1, 0, 1, None]})
>>> df = pl.DataFrame({"a": [-1, 0, 2, None]})
>>> df.with_columns(pl.col("a").neg())
shape: (4, 1)
┌──────┐
Expand All @@ -5130,7 +5130,7 @@ def neg(self) -> Self:
╞══════╡
│ 1 │
│ 0 │
│ -1
│ -2
│ null │
└──────┘
"""
Expand Down

0 comments on commit 8e9c723

Please sign in to comment.