Skip to content

Commit

Permalink
Fix .diff() docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurynasMiksys committed Oct 21, 2023
1 parent 5e96abd commit d6491b2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion py-polars/polars/expr/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -7409,7 +7409,7 @@ def rank(

def diff(self, n: int = 1, null_behavior: NullBehavior = "ignore") -> Self:
"""
Calculate the n-th discrete difference.
Calculate the first discrete difference between shifted items.
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion py-polars/polars/expr/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ def arg_max(self) -> Expr:

def diff(self, n: int = 1, null_behavior: NullBehavior = "ignore") -> Expr:
"""
Calculate the n-th discrete difference of every sublist.
Calculate the first discrete difference between shifted items of every sublist.
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion py-polars/polars/series/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def arg_max(self) -> Series:

def diff(self, n: int = 1, null_behavior: NullBehavior = "ignore") -> Series:
"""
Calculate the n-th discrete difference of every sublist.
Calculate the first discrete difference between shifted items of every sublist.
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion py-polars/polars/series/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -6003,7 +6003,7 @@ def rank(

def diff(self, n: int = 1, null_behavior: NullBehavior = "ignore") -> Series:
"""
Calculate the n-th discrete difference.
Calculate the first discrete difference between shifted items.
Parameters
----------
Expand Down

0 comments on commit d6491b2

Please sign in to comment.