diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 16a3a22bc4876..c15610854f839 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -172,7 +172,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" \ diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index 46e090cc3a589..cf2a9d3f4a238 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -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)})