From 73375e7718b2a180ba5df240d8b3eecd3a18e042 Mon Sep 17 00:00:00 2001 From: josh-tan77 Date: Fri, 9 Aug 2024 21:03:57 -0700 Subject: [PATCH 1/3] added see also to Timestamp.month_name() --- 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 369184d9df40c..925c7bebc0928 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -802,6 +802,10 @@ cdef class _Timestamp(ABCTimestamp): ------- str + See Also + -------- + Timestamp.day_name : Return the day name of the Timestamp with specified locale. + Examples -------- >>> ts = pd.Timestamp('2020-03-14T15:32:52.192548651') From 487c6b8aee991fc6c36feb46716b27138c8d32cf Mon Sep 17 00:00:00 2001 From: josh-tan77 Date: Fri, 9 Aug 2024 21:06:02 -0700 Subject: [PATCH 2/3] added see also to Timestamp.quarter() --- 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 925c7bebc0928..14d3004c56ec1 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -900,6 +900,11 @@ cdef class _Timestamp(ABCTimestamp): ------- int + See Also + -------- + Timestamp.is_quarter_end : Check if date is last day of the quarter. + Timestamp.is_quarter_start : Check if the date is the first day of the quarter. + Examples -------- >>> ts = pd.Timestamp(2020, 3, 14) From d362c83d57ed24a8c8cabf417d9d0ed79637327d Mon Sep 17 00:00:00 2001 From: josh-tan77 Date: Fri, 9 Aug 2024 21:07:21 -0700 Subject: [PATCH 3/3] removed Timestamp.quarter() and Timestamp.month_name() after fixing docstrings --- ci/code_checks.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 692b86ec731c9..e5b05ac141716 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -216,10 +216,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Timestamp.min PR02" \ -i "pandas.Timestamp.minute GL08" \ -i "pandas.Timestamp.month GL08" \ - -i "pandas.Timestamp.month_name SA01" \ -i "pandas.Timestamp.nanosecond GL08" \ -i "pandas.Timestamp.normalize SA01" \ - -i "pandas.Timestamp.quarter SA01" \ -i "pandas.Timestamp.replace PR07,SA01" \ -i "pandas.Timestamp.resolution PR02" \ -i "pandas.Timestamp.second GL08" \