From d7fab41b00cf2f53b50b2d5f2f2c64a274ccf9cd Mon Sep 17 00:00:00 2001 From: Philip Date: Tue, 21 Feb 2023 23:37:21 -0500 Subject: [PATCH 1/2] updated some dtypes docstrings --- ci/code_checks.sh | 7 ++----- pandas/core/dtypes/common.py | 7 +++++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 82a2b0a9189af..899f8f97f5dcc 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -78,7 +78,7 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - +< bool: Examples -------- + >>> from pandas.core.dtypes.common import is_period_dtype >>> is_period_dtype(object) False - >>> is_period_dtype(PeriodDtype(freq="D")) + >>> is_period_dtype(pd.PeriodDtype(freq="D")) True >>> is_period_dtype([1, 2, 3]) False @@ -434,9 +435,10 @@ def is_interval_dtype(arr_or_dtype) -> bool: Examples -------- + >>> from pandas.core.dtypes.common import is_interval_dtype >>> is_interval_dtype(object) False - >>> is_interval_dtype(IntervalDtype()) + >>> is_interval_dtype(pd.IntervalDtype()) True >>> is_interval_dtype([1, 2, 3]) False @@ -727,6 +729,7 @@ def is_signed_integer_dtype(arr_or_dtype) -> bool: Examples -------- + >>> from pandas.core.dtypes.common import is_signed_integer_dtype >>> is_signed_integer_dtype(str) False >>> is_signed_integer_dtype(int) From ab2ead3b4da5fea60eee07cc01e69306e2a93654 Mon Sep 17 00:00:00 2001 From: Philip Date: Tue, 21 Feb 2023 23:43:27 -0500 Subject: [PATCH 2/2] deleted comment --- ci/code_checks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 899f8f97f5dcc..e8a9963438648 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -78,7 +78,7 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -<