diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 9c8d48bc6ba45..cb66a1f350e8f 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -579,8 +579,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX02)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX02 --ignore_functions \ pandas.DataFrame.plot.line \ - pandas.DataFrame.std \ - pandas.DataFrame.var \ pandas.Index.factorize \ pandas.Period.strftime \ pandas.Series.factorize \ @@ -590,8 +588,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.Series.sparse.density \ pandas.Series.sparse.npoints \ pandas.Series.sparse.sp_values \ - pandas.Series.std \ - pandas.Series.var \ pandas.Timestamp.fromtimestamp \ pandas.api.types.infer_dtype \ pandas.api.types.is_bool_dtype \ diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 8fa86e80e1a44..62e8921dc2270 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -11872,12 +11872,14 @@ def _doc_params(cls): >>> df.std() age 18.786076 height 0.237417 +dtype: float64 Alternatively, `ddof=0` can be set to normalize by N instead of N-1: >>> df.std(ddof=0) age 16.269219 -height 0.205609""" +height 0.205609 +dtype: float64""" _var_examples = """ @@ -11898,12 +11900,14 @@ def _doc_params(cls): >>> df.var() age 352.916667 height 0.056367 +dtype: float64 Alternatively, ``ddof=0`` can be set to normalize by N instead of N-1: >>> df.var(ddof=0) age 264.687500 -height 0.042275""" +height 0.042275 +dtype: float64""" _bool_doc = """ {desc}