Skip to content

Commit 1875123

Browse files
tuhinsharma121pmhatre1
authored andcommitted
DOC: Enforce Numpy Docstring Validation for pandas.DatetimeTZDtype.tz (pandas-dev#58401)
* DOC: add SA01 to pandas.DatetimeTZDtype.tz * DOC: remove pandas.DatetimeTZDtype.tz
1 parent 7adb980 commit 1875123

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
105105
-i "pandas.DatetimeIndex.to_period RT03" \
106106
-i "pandas.DatetimeIndex.to_pydatetime RT03,SA01" \
107107
-i "pandas.DatetimeTZDtype SA01" \
108-
-i "pandas.DatetimeTZDtype.tz SA01" \
109108
-i "pandas.Grouper PR02" \
110109
-i "pandas.Index PR07" \
111110
-i "pandas.Index.append PR07,RT03,SA01" \

pandas/core/dtypes/dtypes.py

+4
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,10 @@ def tz(self) -> tzinfo:
811811
"""
812812
The timezone.
813813
814+
See Also
815+
--------
816+
DatetimeTZDtype.unit : Retrieves precision of the datetime data.
817+
814818
Examples
815819
--------
816820
>>> from zoneinfo import ZoneInfo

0 commit comments

Comments
 (0)