Skip to content

Commit 8395f98

Browse files
DOC: fix SA01 for pandas.NamedAgg (#59029)
1 parent 3809e2a commit 8395f98

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9191
-i "pandas.MultiIndex.to_frame RT03" \
9292
-i "pandas.NA SA01" \
9393
-i "pandas.NaT SA01" \
94-
-i "pandas.NamedAgg SA01" \
9594
-i "pandas.Period.asfreq SA01" \
9695
-i "pandas.Period.freq GL08" \
9796
-i "pandas.Period.freqstr SA01" \

pandas/core/groupby/generic.py

+4
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ class NamedAgg(NamedTuple):
124124
Function to apply to the provided column. If string, the name of a built-in
125125
pandas function.
126126
127+
See Also
128+
--------
129+
DataFrame.groupby : Group DataFrame using a mapper or by a Series of columns.
130+
127131
Examples
128132
--------
129133
>>> df = pd.DataFrame({"key": [1, 1, 2], "a": [-1, 0, 1], 1: [10, 11, 12]})

0 commit comments

Comments
 (0)