Skip to content

Commit

Permalink
fix doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamConnors committed Sep 11, 2024
1 parent e9afffd commit e6aa5d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
10 changes: 4 additions & 6 deletions narwhals/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1585,9 +1585,8 @@ def head(self, n: int = 10) -> Self:
r"""
Get the first `n` rows.
Arguments
n : int
Number of rows to return.
Arguments:
n: Number of rows to return.
Examples:
>>> import narwhals as nw
Expand Down Expand Up @@ -1628,9 +1627,8 @@ def tail(self, n: int = 10) -> Self:
r"""
Get the last `n` rows.
Arguments
n : int
Number of rows to return.
Arguments:
n: Number of rows to return.
Examples:
>>> import narwhals as nw
Expand Down
14 changes: 6 additions & 8 deletions narwhals/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -2003,9 +2003,8 @@ def head(self: Self, n: int = 10) -> Self:
r"""
Get the first `n` rows.
Arguments
n : int
Number of rows to return.
Arguments:
n: Number of rows to return.
Examples:
>>> import narwhals as nw
Expand Down Expand Up @@ -2044,9 +2043,8 @@ def tail(self: Self, n: int = 10) -> Self:
r"""
Get the last `n` rows.
Arguments
n : int
Number of rows to return.
Arguments:
n: Number of rows to return.
Examples:
>>> import narwhals as nw
Expand Down Expand Up @@ -2084,7 +2082,7 @@ def round(self: Self, decimals: int = 0) -> Self:
r"""
Round underlying floating point data by `decimals` digits.
Arguments
Arguments:
decimals: Number of decimals to round by.
Notes:
Expand Down Expand Up @@ -2134,7 +2132,7 @@ def to_dummies(
r"""
Get dummy/indicator variables.
Arguments
Arguments:
separator: Separator/delimiter used when generating column names.
drop_first: Remove the first category from the variable being encoded.
Expand Down

0 comments on commit e6aa5d1

Please sign in to comment.