@@ -1097,7 +1097,8 @@ def count(self):
1097
1097
# defined here for API doc
1098
1098
raise NotImplementedError
1099
1099
1100
- @Substitution (name = 'groupby' , see_also = _common_see_also )
1100
+ @Substitution (name = 'groupby' )
1101
+ @Substitution (see_also = _common_see_also )
1101
1102
def mean (self , * args , ** kwargs ):
1102
1103
"""
1103
1104
Compute mean of groups, excluding missing values.
@@ -1543,7 +1544,8 @@ def backfill(self, limit=None):
1543
1544
return self ._fill ('bfill' , limit = limit )
1544
1545
bfill = backfill
1545
1546
1546
- @Substitution (name = 'groupby' , see_also = _common_see_also )
1547
+ @Substitution (name = 'groupby' )
1548
+ @Substitution (see_also = _common_see_also )
1547
1549
def nth (self , n , dropna = None ):
1548
1550
"""
1549
1551
Take the nth row from each group if n is an int, or a subset of rows
@@ -2130,7 +2132,8 @@ def pct_change(self, periods=1, fill_method='pad', limit=None, freq=None,
2130
2132
shifted = fill_grp .shift (periods = periods , freq = freq )
2131
2133
return (filled / shifted ) - 1
2132
2134
2133
- @Substitution (name = 'groupby' , see_also = _common_see_also )
2135
+ @Substitution (name = 'groupby' )
2136
+ @Substitution (see_also = _common_see_also )
2134
2137
def head (self , n = 5 ):
2135
2138
"""
2136
2139
Return first n rows of each group.
@@ -2156,7 +2159,8 @@ def head(self, n=5):
2156
2159
mask = self ._cumcount_array () < n
2157
2160
return self ._selected_obj [mask ]
2158
2161
2159
- @Substitution (name = 'groupby' , see_also = _common_see_also )
2162
+ @Substitution (name = 'groupby' )
2163
+ @Substitution (see_also = _common_see_also )
2160
2164
def tail (self , n = 5 ):
2161
2165
"""
2162
2166
Return last n rows of each group.
0 commit comments