Skip to content

Commit

Permalink
Docstring update
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Oct 21, 2023
1 parent 9da2409 commit 2656a32
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions py-polars/polars/expr/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2354,7 +2354,7 @@ def take(
@deprecate_renamed_parameter("periods", "n", version="0.19.11")
def shift(self, n: int = 1) -> Self:
"""
Shift the values by a given period.
Shift values by the given number of places.
Parameters
----------
Expand Down Expand Up @@ -2388,7 +2388,7 @@ def shift_and_fill(
n: int = 1,
) -> Self:
"""
Shift the values by a given period and fill the resulting null values.
Shift values by the given number of places and fill the resulting null values.
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 @@ -718,7 +718,7 @@ def diff(self, n: int = 1, null_behavior: NullBehavior = "ignore") -> Expr:
@deprecate_renamed_parameter("periods", "n", version="0.19.11")
def shift(self, n: int | IntoExprColumn = 1) -> Expr:
"""
Shift values by the given period.
Shift values by the given number of places.
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 @@ -391,7 +391,7 @@ def diff(self, n: int = 1, null_behavior: NullBehavior = "ignore") -> Series:
@deprecate_renamed_parameter("periods", "n", version="0.19.11")
def shift(self, n: int | IntoExprColumn = 1) -> Series:
"""
Shift values by the given period.
Shift values by the given number of places.
Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions py-polars/polars/series/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -5085,7 +5085,7 @@ def map_elements(
@deprecate_renamed_parameter("periods", "n", version="0.19.11")
def shift(self, n: int = 1) -> Series:
"""
Shift the values by a given period.
Shift values by the given number of places.
Parameters
----------
Expand Down Expand Up @@ -5122,7 +5122,7 @@ def shift_and_fill(
n: int = 1,
) -> Series:
"""
Shift the values by a given period and fill the resulting null values.
Shift values by the given number of places and fill the resulting null values.
Parameters
----------
Expand Down

0 comments on commit 2656a32

Please sign in to comment.