Skip to content

Commit

Permalink
DOC: Enforce Numpy Docstring Validation for pandas.Timestamp.day_of_y…
Browse files Browse the repository at this point in the history
…ear (#58534)

* DOC: add SA01 for pandas.Timestamp.day_of_year

* DOC: remove SA01 for pandas.Timestamp.day_of_year

* DOC: remove SA01 for pandas.Timestamp.dayofyear
  • Loading branch information
tuhinsharma121 committed May 2, 2024
1 parent dc32d29 commit d9a02be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Timestamp.date SA01" \
-i "pandas.Timestamp.day GL08" \
-i "pandas.Timestamp.day_of_week SA01" \
-i "pandas.Timestamp.day_of_year SA01" \
-i "pandas.Timestamp.dayofweek SA01" \
-i "pandas.Timestamp.dayofyear SA01" \
-i "pandas.Timestamp.dst SA01" \
-i "pandas.Timestamp.floor SA01" \
-i "pandas.Timestamp.fold GL08" \
Expand Down
4 changes: 4 additions & 0 deletions pandas/_libs/tslibs/timestamps.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,10 @@ cdef class _Timestamp(ABCTimestamp):
-------
int

See Also
--------
Timestamp.day_of_week : Return day of the week.

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

0 comments on commit d9a02be

Please sign in to comment.