From 10d981b09aed96b0f8396f9fecf9fccedf0f76ee Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 2 May 2024 21:37:07 +0530 Subject: [PATCH 1/2] DOC: add SA01 for pandas.Timestamp.days_in_month --- 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..7209556f15c50 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -904,6 +904,11 @@ cdef class _Timestamp(ABCTimestamp): ------- int + See Also + -------- + Timestamp.month_name : Return the month name of the Timestamp with + specified locale. + Examples -------- >>> ts = pd.Timestamp(2020, 3, 14) From b4b0e9a227a955b06ab931287ce1beb05dd1733e Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 2 May 2024 21:37:26 +0530 Subject: [PATCH 2/2] DOC: remove SA01 for pandas.Timestamp.days_in_month --- ci/code_checks.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 996f361e9440f..917199cd57c61 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -331,8 +331,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -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" \ -i "pandas.Timestamp.dst SA01" \ -i "pandas.Timestamp.floor SA01" \ -i "pandas.Timestamp.fold GL08" \