From acad2259da4ea26db235b135d213edd0114b8b55 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 24 Apr 2024 14:49:33 +0530 Subject: [PATCH 1/2] DOC: add SA01 to pandas.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 0a97a0d03c22a..5ff7ca33d18bd 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -811,6 +811,10 @@ def tz(self) -> tzinfo: """ The timezone. + See Also + -------- + DatetimeTZDtype.unit : Retrieves precision of the datetime data. + Examples -------- >>> from zoneinfo import ZoneInfo From a6d5b7c076c7fa53655d4493499ee0d59b6491e2 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 24 Apr 2024 14:50:04 +0530 Subject: [PATCH 2/2] DOC: remove pandas.DatetimeTZDtype.tz --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 066c7176fcc34..fabd234e060b6 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -115,7 +115,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.DatetimeIndex.to_pydatetime RT03,SA01" \ -i "pandas.DatetimeIndex.tz_convert RT03" \ -i "pandas.DatetimeTZDtype SA01" \ - -i "pandas.DatetimeTZDtype.tz SA01" \ -i "pandas.Grouper PR02" \ -i "pandas.Index PR07" \ -i "pandas.Index.T SA01" \