From e6aa5d1f3f0902fc91a406eeeacdcb4caa59623c Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Tue, 10 Sep 2024 22:35:11 -0400 Subject: [PATCH] fix doc strings --- narwhals/expr.py | 10 ++++------ narwhals/series.py | 14 ++++++-------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/narwhals/expr.py b/narwhals/expr.py index cc8b86956..62e87ff72 100644 --- a/narwhals/expr.py +++ b/narwhals/expr.py @@ -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 @@ -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 diff --git a/narwhals/series.py b/narwhals/series.py index 0b1645ea7..d0d168c25 100644 --- a/narwhals/series.py +++ b/narwhals/series.py @@ -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 @@ -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 @@ -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: @@ -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.