From 601ee062c092237f6d4bba284d6e31b86673c165 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Fri, 13 Sep 2024 10:28:41 +0530 Subject: [PATCH] DOC: fix SA01 for pandas.NA --- ci/code_checks.sh | 1 - pandas/_libs/missing.pyx | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c2ab1e6b62352..7ad29b3a2a1f3 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -70,7 +70,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then --format=actions \ -i ES01 `# For now it is ok if docstrings are missing the extended summary` \ -i "pandas.Series.dt PR01" `# Accessors are implemented as classes, but we do not document the Parameters section` \ - -i "pandas.NA SA01" \ -i "pandas.Period.freq GL08" \ -i "pandas.Period.ordinal GL08" \ -i "pandas.PeriodDtype.freq SA01" \ diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx index 2f44128cda822..390a527c22bbb 100644 --- a/pandas/_libs/missing.pyx +++ b/pandas/_libs/missing.pyx @@ -347,6 +347,14 @@ class NAType(C_NAType): The NA singleton is a missing value indicator defined by pandas. It is used in certain new extension dtypes (currently the "string" dtype). + See Also + -------- + numpy.nan : Floating point representation of Not a Number (NaN) for numerical data. + isna : Detect missing values for an array-like object. + notna : Detect non-missing values for an array-like object. + DataFrame.fillna : Fill missing values in a DataFrame. + Series.fillna : Fill missing values in a Series. + Examples -------- >>> pd.NA