Skip to content

Commit 4c96205

Browse files
DOC: fix SA01 for pandas.errors.SpecificationError (#59983)
1 parent 8c0777e commit 4c96205

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
169169
-i "pandas.errors.PerformanceWarning SA01" \
170170
-i "pandas.errors.PossibleDataLossError SA01" \
171171
-i "pandas.errors.PossiblePrecisionLoss SA01" \
172-
-i "pandas.errors.SpecificationError SA01" \
173172
-i "pandas.errors.UndefinedVariableError PR01,SA01" \
174173
-i "pandas.errors.UnsortedIndexError SA01" \
175174
-i "pandas.errors.UnsupportedFunctionCall SA01" \

pandas/errors/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,11 @@ class SpecificationError(Exception):
444444
The second way is calling ``agg`` on a Dataframe with duplicated functions
445445
names without assigning column name.
446446
447+
See Also
448+
--------
449+
DataFrame.agg : Aggregate using one or more operations over the specified axis.
450+
Series.agg : Aggregate using one or more operations over the specified axis.
451+
447452
Examples
448453
--------
449454
>>> df = pd.DataFrame({"A": [1, 1, 1, 2, 2], "B": range(5), "C": range(5)})

0 commit comments

Comments
 (0)