Skip to content

Commit fd87793

Browse files
committed
Fix docstring
1 parent 02d5016 commit fd87793

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/core/window/expanding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ def kurt(self, numeric_only: bool = False):
676676
GroupBy.first : Similar method for GroupBy objects
677677
Expanding.last : Method to get the last element in each window
678678
"""
679-
),
679+
).replace("\n", "", 1),
680680
create_section_header("Examples"),
681681
dedent(
682682
"""
@@ -712,7 +712,7 @@ def first(self, numeric_only: bool = False):
712712
GroupBy.last : Similar method for GroupBy objects
713713
Expanding.first : Method to get the first element in each window
714714
"""
715-
),
715+
).replace("\n", "", 1),
716716
create_section_header("Examples"),
717717
dedent(
718718
"""

pandas/core/window/rolling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2567,7 +2567,7 @@ def kurt(self, numeric_only: bool = False):
25672567
GroupBy.first : Similar method for GroupBy objects
25682568
Rolling.last : Method to get the last element in each window
25692569
"""
2570-
),
2570+
).replace("\n", "", 1),
25712571
create_section_header("Examples"),
25722572
dedent(
25732573
"""
@@ -2603,7 +2603,7 @@ def first(self, numeric_only: bool = False):
26032603
GroupBy.last : Similar method for GroupBy objects
26042604
Rolling.first : Method to get the first element in each window
26052605
"""
2606-
),
2606+
).replace("\n", "", 1),
26072607
create_section_header("Examples"),
26082608
dedent(
26092609
"""

0 commit comments

Comments
 (0)