Skip to content

Commit 02d5016

Browse files
committed
Set 'See Also' section in doc
1 parent a4441f1 commit 02d5016

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

pandas/core/window/expanding.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,13 @@ def kurt(self, numeric_only: bool = False):
670670
kwargs_numeric_only,
671671
create_section_header("Returns"),
672672
template_returns,
673+
create_section_header("See Also"),
674+
dedent(
675+
"""
676+
GroupBy.first : Similar method for GroupBy objects
677+
Expanding.last : Method to get the last element in each window
678+
"""
679+
),
673680
create_section_header("Examples"),
674681
dedent(
675682
"""
@@ -699,6 +706,13 @@ def first(self, numeric_only: bool = False):
699706
kwargs_numeric_only,
700707
create_section_header("Returns"),
701708
template_returns,
709+
create_section_header("See Also"),
710+
dedent(
711+
"""
712+
GroupBy.last : Similar method for GroupBy objects
713+
Expanding.first : Method to get the first element in each window
714+
"""
715+
),
702716
create_section_header("Examples"),
703717
dedent(
704718
"""

pandas/core/window/rolling.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2561,6 +2561,13 @@ def kurt(self, numeric_only: bool = False):
25612561
kwargs_numeric_only,
25622562
create_section_header("Returns"),
25632563
template_returns,
2564+
create_section_header("See Also"),
2565+
dedent(
2566+
"""
2567+
GroupBy.first : Similar method for GroupBy objects
2568+
Rolling.last : Method to get the last element in each window
2569+
"""
2570+
),
25642571
create_section_header("Examples"),
25652572
dedent(
25662573
"""
@@ -2590,6 +2597,13 @@ def first(self, numeric_only: bool = False):
25902597
kwargs_numeric_only,
25912598
create_section_header("Returns"),
25922599
template_returns,
2600+
create_section_header("See Also"),
2601+
dedent(
2602+
"""
2603+
GroupBy.last : Similar method for GroupBy objects
2604+
Rolling.first : Method to get the first element in each window
2605+
"""
2606+
),
25932607
create_section_header("Examples"),
25942608
dedent(
25952609
"""

0 commit comments

Comments
 (0)