Skip to content

Commit 56b6c8a

Browse files
authored
DOC: Enforce Numpy Docstring Validation Timestamp.week (#58674)
* DOC: add SA01 to Timestamp.week * remove from code_checks * remove weekofyear alias from code_checks
1 parent bfe5a22 commit 56b6c8a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ci/code_checks.sh

-2
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
320320
-i "pandas.Timestamp.utcoffset SA01" \
321321
-i "pandas.Timestamp.utctimetuple SA01" \
322322
-i "pandas.Timestamp.value GL08" \
323-
-i "pandas.Timestamp.week SA01" \
324323
-i "pandas.Timestamp.weekday SA01" \
325-
-i "pandas.Timestamp.weekofyear SA01" \
326324
-i "pandas.Timestamp.year GL08" \
327325
-i "pandas.api.extensions.ExtensionArray._from_sequence_of_strings SA01" \
328326
-i "pandas.api.extensions.ExtensionArray._hash_pandas_object RT03,SA01" \

pandas/_libs/tslibs/timestamps.pyx

+5
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,11 @@ cdef class _Timestamp(ABCTimestamp):
902902
-------
903903
int
904904

905+
See Also
906+
--------
907+
Timestamp.weekday : Return the day of the week.
908+
Timestamp.quarter : Return the quarter of the year.
909+
905910
Examples
906911
--------
907912
>>> ts = pd.Timestamp(2020, 3, 14)

0 commit comments

Comments
 (0)