From bdb03cfdfa9ecd198cbbdfb15d7764da6b8427c5 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 2 May 2024 19:59:06 +0530 Subject: [PATCH 1/4] DOC: add SA01 for pandas.Timestamp.day_of_week --- pandas/_libs/tslibs/timestamps.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 82daa6d942095..d101d5ca2ff70 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -836,6 +836,10 @@ cdef class _Timestamp(ABCTimestamp): ------- int + See Also + -------- + Timestamp.day_of_year : Return day of the year. + Examples -------- >>> ts = pd.Timestamp(2020, 3, 14) From 53015bcd02515cebefcc812b0f285ef231dc155a Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 2 May 2024 19:59:25 +0530 Subject: [PATCH 2/4] DOC: remove SA01 for pandas.Timestamp.day_of_week --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 996f361e9440f..023ab6ea77748 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -327,7 +327,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -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" \ -i "pandas.Timestamp.dayofyear SA01" \ From 7a82e2f7c1353bcffd00ff88a9e78038613a87d0 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 2 May 2024 20:01:01 +0530 Subject: [PATCH 3/4] DOC: remove SA01 for pandas.Timestamp.dayofweek --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 023ab6ea77748..6747f0b3326b0 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -328,7 +328,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Timestamp.day GL08" \ -i "pandas.Timestamp.day_name SA01" \ -i "pandas.Timestamp.day_of_year SA01" \ - -i "pandas.Timestamp.dayofweek SA01" \ -i "pandas.Timestamp.dayofyear SA01" \ -i "pandas.Timestamp.days_in_month SA01" \ -i "pandas.Timestamp.daysinmonth SA01" \ From b11e6a05fc50aeb47b84f1393e557479c9b6bb96 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 2 May 2024 21:34:16 +0530 Subject: [PATCH 4/4] DOC: add SA01 for pandas.Timestamp.day_of_week --- pandas/_libs/tslibs/timestamps.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index d101d5ca2ff70..6f800cfdbfc79 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -838,6 +838,8 @@ cdef class _Timestamp(ABCTimestamp): See Also -------- + Timestamp.isoweekday : Return the ISO day of the week represented by the date. + Timestamp.weekday : Return the day of the week represented by the date. Timestamp.day_of_year : Return day of the year. Examples