Skip to content

Commit

Permalink
Fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
snitish committed Jan 16, 2025
1 parent 02d5016 commit fd87793
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pandas/core/window/expanding.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def kurt(self, numeric_only: bool = False):
GroupBy.first : Similar method for GroupBy objects
Expanding.last : Method to get the last element in each window
"""
),
).replace("\n", "", 1),
create_section_header("Examples"),
dedent(
"""
Expand Down Expand Up @@ -712,7 +712,7 @@ def first(self, numeric_only: bool = False):
GroupBy.last : Similar method for GroupBy objects
Expanding.first : Method to get the first element in each window
"""
),
).replace("\n", "", 1),
create_section_header("Examples"),
dedent(
"""
Expand Down
4 changes: 2 additions & 2 deletions pandas/core/window/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2567,7 +2567,7 @@ def kurt(self, numeric_only: bool = False):
GroupBy.first : Similar method for GroupBy objects
Rolling.last : Method to get the last element in each window
"""
),
).replace("\n", "", 1),
create_section_header("Examples"),
dedent(
"""
Expand Down Expand Up @@ -2603,7 +2603,7 @@ def first(self, numeric_only: bool = False):
GroupBy.last : Similar method for GroupBy objects
Rolling.first : Method to get the first element in each window
"""
),
).replace("\n", "", 1),
create_section_header("Examples"),
dedent(
"""
Expand Down

0 comments on commit fd87793

Please sign in to comment.