From 8a4b771cc8438c8c6c05f780a90db592b15776f3 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Sat, 19 Oct 2024 01:12:29 +0530 Subject: [PATCH] DOC: fix SA01 for pandas.errors.UnsupportedFunctionCall --- ci/code_checks.sh | 1 - pandas/errors/__init__.py | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 1974c98a1d1ff..ebec4fd694b20 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -149,7 +149,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.errors.PossiblePrecisionLoss SA01" \ -i "pandas.errors.UndefinedVariableError PR01,SA01" \ -i "pandas.errors.UnsortedIndexError SA01" \ - -i "pandas.errors.UnsupportedFunctionCall SA01" \ -i "pandas.errors.ValueLabelTypeMismatch SA01" \ -i "pandas.infer_freq SA01" \ -i "pandas.io.json.build_table_schema PR07,RT03,SA01" \ diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index efc032b0b559e..e9ea18e0a60c5 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -76,6 +76,12 @@ class UnsupportedFunctionCall(ValueError): For example, ``np.cumsum(groupby_object)``. + See Also + -------- + DataFrame.groupby : Group DataFrame using a mapper or by a Series of columns. + Series.groupby : Group Series using a mapper or by a Series of columns. + core.groupby.GroupBy.cumsum : Compute cumulative sum for each group. + Examples -------- >>> df = pd.DataFrame(