From 6a3f9bd425b9d40e2669e6d5f8159d67b71cc690 Mon Sep 17 00:00:00 2001 From: tianyeeT Date: Tue, 9 Jul 2024 14:50:38 +0800 Subject: [PATCH 1/2] update pandas.api.types.is_extension_array_dtype --- pandas/core/dtypes/common.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index bee8af46baa64..472754c7d3ad0 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -1327,6 +1327,12 @@ def is_extension_array_dtype(arr_or_dtype) -> bool: Third-party libraries may implement arrays or types satisfying this interface as well. + See Also + -------- + pandas.api.types.is_string_dtype : Check whether the provided array or dtype is of the string dtype. + pandas.api.types.is_float_dtype : Check whether the provided array or dtype is of a float dtype. + pandas.api.types.is_integer_dtype : Check whether the provided array or dtype is of an integer dtype. + Examples -------- >>> from pandas.api.types import is_extension_array_dtype From 345b990594c2b19ec3bbc42a6e2366a254b990bb Mon Sep 17 00:00:00 2001 From: tianyeeT Date: Tue, 9 Jul 2024 15:06:02 +0800 Subject: [PATCH 2/2] [code_checks]:remove pandas.api.types.is_extension_array_dtype --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index b01866a6d6c82..8dc0f7c8937dd 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -297,7 +297,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.api.types.is_datetime64_ns_dtype SA01" \ -i "pandas.api.types.is_datetime64tz_dtype SA01" \ -i "pandas.api.types.is_dict_like PR07,SA01" \ - -i "pandas.api.types.is_extension_array_dtype SA01" \ -i "pandas.api.types.is_file_like PR07,SA01" \ -i "pandas.api.types.is_float PR01,SA01" \ -i "pandas.api.types.is_float_dtype SA01" \