Skip to content

Commit d9a02be

Browse files
DOC: Enforce Numpy Docstring Validation for pandas.Timestamp.day_of_year (#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
1 parent dc32d29 commit d9a02be

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-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.date SA01" \
321321
-i "pandas.Timestamp.day GL08" \
322322
-i "pandas.Timestamp.day_of_week SA01" \
323-
-i "pandas.Timestamp.day_of_year SA01" \
324323
-i "pandas.Timestamp.dayofweek SA01" \
325-
-i "pandas.Timestamp.dayofyear SA01" \
326324
-i "pandas.Timestamp.dst SA01" \
327325
-i "pandas.Timestamp.floor SA01" \
328326
-i "pandas.Timestamp.fold GL08" \

pandas/_libs/tslibs/timestamps.pyx

+4
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,10 @@ cdef class _Timestamp(ABCTimestamp):
858858
-------
859859
int
860860

861+
See Also
862+
--------
863+
Timestamp.day_of_week : Return day of the week.
864+
861865
Examples
862866
--------
863867
>>> ts = pd.Timestamp(2020, 3, 14)

0 commit comments

Comments
 (0)