Skip to content

Commit dc32d29

Browse files
DOC: Enforce Numpy Docstring Validation for pandas.Timestamp.day_name (#58532)
* DOC: add SA01 for pandas.Timestamp.day_name * DOC: remove SA01 for pandas.Timestamp.day_name * DOC: add SA01 to nattype
1 parent ad42520 commit dc32d29

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
319319
-i "pandas.Timestamp.ctime SA01" \
320320
-i "pandas.Timestamp.date SA01" \
321321
-i "pandas.Timestamp.day GL08" \
322-
-i "pandas.Timestamp.day_name SA01" \
323322
-i "pandas.Timestamp.day_of_week SA01" \
324323
-i "pandas.Timestamp.day_of_year SA01" \
325324
-i "pandas.Timestamp.dayofweek SA01" \

pandas/_libs/tslibs/nattype.pyx

+5
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,11 @@ class NaTType(_NaT):
498498
-------
499499
str
500500
501+
See Also
502+
--------
503+
Timestamp.day_of_week : Return day of the week.
504+
Timestamp.day_of_year : Return day of the year.
505+
501506
Examples
502507
--------
503508
>>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651')

pandas/_libs/tslibs/timestamps.pyx

+5
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,11 @@ cdef class _Timestamp(ABCTimestamp):
771771
-------
772772
str
773773

774+
See Also
775+
--------
776+
Timestamp.day_of_week : Return day of the week.
777+
Timestamp.day_of_year : Return day of the year.
778+
774779
Examples
775780
--------
776781
>>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651')

0 commit comments

Comments
 (0)