From 9de0a18b1398b10f3481070cdd6497d443b817a2 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 1 May 2024 11:31:03 +0530 Subject: [PATCH 1/4] DOC: add SA01 for Int16Dtype,Int32Dtype,Int64Dtype,Int8Dtype --- pandas/core/arrays/integer.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py index 21a9b09227663..ee87d601fa16d 100644 --- a/pandas/core/arrays/integer.py +++ b/pandas/core/arrays/integer.py @@ -144,6 +144,13 @@ class IntegerArray(NumericArray): ------- None +See Also +-------- +Int8Dtype : For np.int8. +Int16Dtype : For np.int16. +Int32Dtype : For np.int32. +Int64Dtype : For np.int64. + Examples -------- For Int8Dtype: From 482146bee93d739e1dc38480491de02b5c1fa7bc Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 1 May 2024 11:31:30 +0530 Subject: [PATCH 2/4] DOC: remove SA01 for Int16Dtype,Int32Dtype,Int64Dtype,Int8Dtype --- ci/code_checks.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f49bfb1581332..6151269f7f138 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -96,10 +96,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Index.putmask PR01,RT03" \ -i "pandas.Index.ravel PR01,RT03" \ -i "pandas.Index.str PR01,SA01" \ - -i "pandas.Int16Dtype SA01" \ - -i "pandas.Int32Dtype SA01" \ - -i "pandas.Int64Dtype SA01" \ - -i "pandas.Int8Dtype SA01" \ -i "pandas.Interval PR02" \ -i "pandas.Interval.closed SA01" \ -i "pandas.Interval.left SA01" \ From 27efe8c33f0b94b375135d2a03b7697db07b417f Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 1 May 2024 12:32:23 +0530 Subject: [PATCH 3/4] DOC: remove SA01 for Int16Dtype,Int32Dtype,Int64Dtype,Int8Dtype --- ci/code_checks.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 6151269f7f138..7e2086ad4981d 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -397,10 +397,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Timestamp.weekday SA01" \ -i "pandas.Timestamp.weekofyear SA01" \ -i "pandas.Timestamp.year GL08" \ - -i "pandas.UInt16Dtype SA01" \ - -i "pandas.UInt32Dtype SA01" \ - -i "pandas.UInt64Dtype SA01" \ - -i "pandas.UInt8Dtype SA01" \ -i "pandas.api.extensions.ExtensionArray SA01" \ -i "pandas.api.extensions.ExtensionArray._accumulate RT03,SA01" \ -i "pandas.api.extensions.ExtensionArray._concat_same_type PR07,SA01" \ From 62ffc338bc66d83fbe31a79e31de448a0b9a850b Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 1 May 2024 22:37:45 +0530 Subject: [PATCH 4/4] DOC: change description to n-bit nullable integer type --- pandas/core/arrays/integer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py index ee87d601fa16d..f85fbd062b0c3 100644 --- a/pandas/core/arrays/integer.py +++ b/pandas/core/arrays/integer.py @@ -146,10 +146,10 @@ class IntegerArray(NumericArray): See Also -------- -Int8Dtype : For np.int8. -Int16Dtype : For np.int16. -Int32Dtype : For np.int32. -Int64Dtype : For np.int64. +Int8Dtype : 8-bit nullable integer type. +Int16Dtype : 16-bit nullable integer type. +Int32Dtype : 32-bit nullable integer type. +Int64Dtype : 64-bit nullable integer type. Examples --------