From aa3a905a60f85a98b22e15bc64ae213dbae970eb Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 2 May 2024 19:53:02 +0530 Subject: [PATCH 1/3] DOC: add SA01 for pandas.Timestamp.day_name --- pandas/_libs/tslibs/timestamps.pyx | 5 +++++ 1 file changed, 5 insertions(+) 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') From 308314f96e83ef6cf36304a221803629086d96ab Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 2 May 2024 19:53:40 +0530 Subject: [PATCH 2/3] DOC: remove SA01 for pandas.Timestamp.day_name --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 996f361e9440f..f3f44325489a0 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -326,7 +326,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" \ From abd1bfb675ab406bf8b84d97e7836b96244572bb Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 2 May 2024 23:15:44 +0530 Subject: [PATCH 3/3] DOC: add SA01 to nattype --- pandas/_libs/tslibs/nattype.pyx | 5 +++++ 1 file changed, 5 insertions(+) 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')