Skip to content

Commit

Permalink
DOC: fix SA01 for pandas.errors.SpecificationError (#59983)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 authored Oct 6, 2024
1 parent 8c0777e commit 4c96205
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@ -169,7 +169,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.errors.PerformanceWarning SA01" \
-i "pandas.errors.PossibleDataLossError SA01" \
-i "pandas.errors.PossiblePrecisionLoss SA01" \
-i "pandas.errors.SpecificationError SA01" \
-i "pandas.errors.UndefinedVariableError PR01,SA01" \
-i "pandas.errors.UnsortedIndexError SA01" \
-i "pandas.errors.UnsupportedFunctionCall SA01" \
Expand Down
5 changes: 5 additions & 0 deletions pandas/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,11 @@ class SpecificationError(Exception):
The second way is calling ``agg`` on a Dataframe with duplicated functions
names without assigning column name.
See Also
--------
DataFrame.agg : Aggregate using one or more operations over the specified axis.
Series.agg : Aggregate using one or more operations over the specified axis.
Examples
--------
>>> df = pd.DataFrame({"A": [1, 1, 1, 2, 2], "B": range(5), "C": range(5)})
Expand Down

0 comments on commit 4c96205

Please sign in to comment.