diff --git a/ci/code_checks.sh b/ci/code_checks.sh index fd55fd06ca622..7bda5dbeffb24 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -320,7 +320,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Timestamp.ctime SA01" \ -i "pandas.Timestamp.date SA01" \ -i "pandas.Timestamp.day GL08" \ - -i "pandas.Timestamp.day_name SA01" \ -i "pandas.Timestamp.day_of_week SA01" \ -i "pandas.Timestamp.day_of_year SA01" \ -i "pandas.Timestamp.dayofweek SA01" \ diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index 7a08e4ad4b260..0108fc8fb7eed 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -498,6 +498,11 @@ class NaTType(_NaT): ------- str + See Also + -------- + Timestamp.day_of_week : Return day of the week. + Timestamp.day_of_year : Return day of the year. + Examples -------- >>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651') diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 82daa6d942095..03b6561523485 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -771,6 +771,11 @@ cdef class _Timestamp(ABCTimestamp): ------- str + See Also + -------- + Timestamp.day_of_week : Return day of the week. + Timestamp.day_of_year : Return day of the year. + Examples -------- >>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651')