Skip to content

Commit

Permalink
DOC: fix SA01 for pandas.NamedAgg (pandas-dev#59029)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 authored Jun 17, 2024
1 parent 3809e2a commit 8395f98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.MultiIndex.to_frame RT03" \
-i "pandas.NA SA01" \
-i "pandas.NaT SA01" \
-i "pandas.NamedAgg SA01" \
-i "pandas.Period.asfreq SA01" \
-i "pandas.Period.freq GL08" \
-i "pandas.Period.freqstr SA01" \
Expand Down
4 changes: 4 additions & 0 deletions pandas/core/groupby/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ class NamedAgg(NamedTuple):
Function to apply to the provided column. If string, the name of a built-in
pandas function.
See Also
--------
DataFrame.groupby : Group DataFrame using a mapper or by a Series of columns.
Examples
--------
>>> df = pd.DataFrame({"key": [1, 1, 2], "a": [-1, 0, 1], 1: [10, 11, 12]})
Expand Down

0 comments on commit 8395f98

Please sign in to comment.