From 024297e482dffeb33c171ce4ec9f326d6f2fbcc1 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 24 Apr 2024 00:26:20 +0530 Subject: [PATCH 1/2] DOC: add SA01 to DatetimeTZDtype.tz --- pandas/core/dtypes/dtypes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 98e689528744e..0a97a0d03c22a 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -793,6 +793,10 @@ def unit(self) -> str_type: """ The precision of the datetime data. + See Also + -------- + DatetimeTZDtype.tz : Retrieves the timezone. + Examples -------- >>> from zoneinfo import ZoneInfo From 4fbcdd7defa483696ac6874eb91a6397f026a951 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 24 Apr 2024 00:27:27 +0530 Subject: [PATCH 2/2] DOC: remove SA01 of DatetimeTZDtype.unit --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 24dacd6b48a42..066c7176fcc34 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -116,7 +116,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.DatetimeIndex.tz_convert RT03" \ -i "pandas.DatetimeTZDtype SA01" \ -i "pandas.DatetimeTZDtype.tz SA01" \ - -i "pandas.DatetimeTZDtype.unit SA01" \ -i "pandas.Grouper PR02" \ -i "pandas.Index PR07" \ -i "pandas.Index.T SA01" \