Skip to content

Commit

Permalink
DOC: Enforce Numpy Docstring Validation Timestamp.week (#58674)
Browse files Browse the repository at this point in the history
* DOC: add SA01 to Timestamp.week

* remove from code_checks

* remove weekofyear alias from code_checks
  • Loading branch information
abonte committed May 11, 2024
1 parent bfe5a22 commit 56b6c8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ci/code_checks.sh
Expand Up @@ -320,9 +320,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Timestamp.utcoffset SA01" \
-i "pandas.Timestamp.utctimetuple SA01" \
-i "pandas.Timestamp.value GL08" \
-i "pandas.Timestamp.week SA01" \
-i "pandas.Timestamp.weekday SA01" \
-i "pandas.Timestamp.weekofyear SA01" \
-i "pandas.Timestamp.year GL08" \
-i "pandas.api.extensions.ExtensionArray._from_sequence_of_strings SA01" \
-i "pandas.api.extensions.ExtensionArray._hash_pandas_object RT03,SA01" \
Expand Down
5 changes: 5 additions & 0 deletions pandas/_libs/tslibs/timestamps.pyx
Expand Up @@ -902,6 +902,11 @@ cdef class _Timestamp(ABCTimestamp):
-------
int

See Also
--------
Timestamp.weekday : Return the day of the week.
Timestamp.quarter : Return the quarter of the year.

Examples
--------
>>> ts = pd.Timestamp(2020, 3, 14)
Expand Down

0 comments on commit 56b6c8a

Please sign in to comment.