Skip to content

Commit 754403a

Browse files
tuhinsharma121pmhatre1
authored andcommitted
DOC: Enforce Numpy Docstring Validation for pandas.Timestamp.day_of_week (pandas-dev#58533)
* DOC: add SA01 for pandas.Timestamp.day_of_week * DOC: remove SA01 for pandas.Timestamp.day_of_week * DOC: remove SA01 for pandas.Timestamp.dayofweek * DOC: add SA01 for pandas.Timestamp.day_of_week
1 parent ef4a196 commit 754403a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ci/code_checks.sh

-2
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
315315
-i "pandas.Timestamp.ctime SA01" \
316316
-i "pandas.Timestamp.date SA01" \
317317
-i "pandas.Timestamp.day GL08" \
318-
-i "pandas.Timestamp.day_of_week SA01" \
319-
-i "pandas.Timestamp.dayofweek SA01" \
320318
-i "pandas.Timestamp.dst SA01" \
321319
-i "pandas.Timestamp.floor SA01" \
322320
-i "pandas.Timestamp.fold GL08" \

pandas/_libs/tslibs/timestamps.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,12 @@ cdef class _Timestamp(ABCTimestamp):
841841
-------
842842
int
843843

844+
See Also
845+
--------
846+
Timestamp.isoweekday : Return the ISO day of the week represented by the date.
847+
Timestamp.weekday : Return the day of the week represented by the date.
848+
Timestamp.day_of_year : Return day of the year.
849+
844850
Examples
845851
--------
846852
>>> ts = pd.Timestamp(2020, 3, 14)

0 commit comments

Comments
 (0)